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 ]