• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

font distortion

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm working on application that uses a servlet to access and output data. Inside the code for the servlet, there is the following:

which controls the fonts for the output. The font colors in IE 5 are fine but the font colors in NN 4.6 browser are not what they should be. Has anybody experienced this problem before and if so what was the fix?
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is a HTML and browser problem and not related to Servlets.
I've found that (in general) fonts in Netscape need to be a point bigger than the ones in IE to display.
I have something that defines the exact situation I saw I it, I'll go have a look...
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Righty then, when I tried it, 9pt fonts looked like crap in NS but fine in IE. We had to define the size as 10pt in NS and 9pt in IE.
I hope this helps (or is even relevant)
Dave
 
Alfonso Harding
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Dave, I figured out the problem.. It wasn't the font sizes I was having trouble with but it was the coloring of the words. In IE the color is what it should be, but in Netscape the colors were not. The problem was really an HTML one but it might help those who work with servlets and stylesheets in the future.
in the style sheet I had
h2 {color: "#ffffff"}
but when I changed it to:
h2 {color: #ffffff } w/o the "" marks, the problem was solved even though the first one works with regular html pages.
Thanks for the help anyway. Problem solved.
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved from Servlets -> HTML and Javascript
 
reply
    Bookmark Topic Watch Topic
  • New Topic