java 获取本地字体库

GraphicsEnvironment gEnv = GraphicsEnvironment.getLocalGraphicsEnvironment();
String evnfonts[] = gEnv.getAvailableFontFamilyNames();
for(int i=0;i System.out.println(evnfonts[i]);
}

你可能感兴趣的:(Java)