Why does Font.getFont return null when looking for system font?
posted 8 years ago
I have the following code that looks for a font that I know is installed (see below). What am i doing wrong?
UPDATE: looking further into the JRE's source code, I see the getFont method is this:
I don't get it, how does that ever work? I've never seen the fonts in the system properties on any computer in any version of java. Testing on these setups, they all return null and none of them have any fonts in the system properties:
OpenSuse - Java 6
OpenSuse - Java 5
Windows XP - Java 6
Windows XP - Java 5