Shouldn't they look exactly the same? Or does Java not have its own fonts? Does it just map font names to OS fonts?
|
|
Java normally uses system fonts, just like other programs. According to the spec: "All implementations of the Java 2 platform must support TrueType fonts; support for other font technologies is implementation dependent." (Javadocs of java.awt.font). There's one twist: Since a Java program cannot know in advance what fonts will be available on the target platform, there are "logical font names" ("serif", "monospaced" etc.). These are always available in Java; the Java runtime will map these pseudo-fontnames to an approriate font on the system. This mapping is configurable. See http://java.sun.com/j2se/1.5.0/docs/guide/intl/fontconfig.html. I suspect that the Java app in question uses these logical font names, which are simply mapped to different fonts on Windows and on Mac OS. |
|||
|
|