"David Mikesell" <email@hidden> wrote:
>I have created a simple test case to illustrate my issue. Essentially, it
>seems that the jre is not picking the correct font when I specify one of the
>fonts included with the jre in a JEditorPane, and that font I choose is not
>Lucida Sans (e.g. when IĆve chosen Lucida Sans Typewriter or Lucida Bright).
>I have tested this under Windows and do not observe this behavior. One of
>my co-workers did diffs on the ttf files on both platforms to verify that
>the Windows fonts are the same as installed on the Mac (they are).
I assume you're referring to the fonts in {java.home}/lib/fonts/.
The question I would have is whether those fonts are being seen and loaded
by AWT or Swing. Just because they're in a directory you expect doesn't
mean that a platform-specific implementation of AWT is going to load them.
To answer that question, I'd write a Java program that called
GraphicsEnvironment.getAllFonts() and then println'ed exactly what the
available Fonts are. If something like "Lucida Bright" were listed, I'd
double-check the name, test how it rendered, etc. If "Lucida Bright"
weren't listed, I'd try to find out why not, or maybe question why I was
assuming it would be available. For example, these describe Sun's JRE, but
that's no guarantee that Apple's JVM works exactly the same way:
<http://java.sun.com/j2se/1.4.2/docs/guide/intl/font.html>
<http://java.sun.com/j2se/1.4.2/docs/guide/intl/fontprop.html>
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden