Font support
Michael Hall
mik3hall at gmail.com
Thu Apr 19 14:37:22 PDT 2012
Still wondering known or is this a bug report?
public class FontTest {
public static void main(String[] args) {
String [] fonts = java.awt.Toolkit.getDefaultToolkit().getFontList();
if (args.length > 0 && args[0].equals("c")) {
System.out.println("Font count " + fonts.length);
return;
}
System.out.println("Font count " + fonts.length);
for (int i=0;i<fonts.length;i++) System.out.println(fonts[i]);
}
}
Mac-User:~ mjh$ /usr/libexec/java_home -v 1.6 --exec java FontTest c
Font count 220
Mac-User:~ mjh$ /usr/libexec/java_home -v 1.7 --exec java FontTest
Font count 5
Dialog
SansSerif
Serif
Monospaced
DialogInput
/usr/libexec/java_home -v 1.7 --exec java -version
openjdk version "1.7.0-u4-b228"
OpenJDK Runtime Environment (build 1.7.0-u4-b228-20120203)
OpenJDK 64-Bit Server VM (build 23.0-b12, mixed mode)
More information about the macosx-port-dev
mailing list