• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Fonts on two Solaris machines

 
Ranch Hand
Posts: 1168
11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a strange problem. I'm drawing some text on a BufferedImage in a Servlet for display as buttons in a web browser. I did this so that my button labels would fit in my buttons regardless of the fonts the client has installed.

I pretty much expected to have the fonts look slightly different between my Windows test server and the real Solaris server. However, I have two different solaris machines, one test and one production, and the rendered fonts look different between the two Solaris machines. (And, consistent with Murphy's Law, the button images rendered on the production machine look worse.)

Actually, I make a couple different button types. The button images that use just plain "new Font("Dialog", Font.PLAIN, 12)" look equally good on the two machines. It's when I use "new Font("Dialog", Font.BOLD, 12)" that the difference pops up.

I've already verified that all the files in the .../jre/lib/fonts are at least the same size on the two machines. Here are the lines that I assume make a difference from my .../jre/lib/font.properties file:


That third-to-last line makes me think that the Arial Solaris font is being substituted in for the Java Dialog font.

I did a find from /usr for all files that start "Arial". It found a bunch in the /usr/openwin/lib/X11/fonts/TrueType dir. The Arial* files are at least the same size and date on the two machines.

Are there any other files that come into play? Does my PATH come into play?

Any help would be greatly appreciated.
[ December 02, 2005: Message edited by: Ryan McGuire ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!