Java 获取系统可用字体列表
- Java
- 2018-05-23
- 122热度
- 0评论
String[] fontNames = GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
List<String> availableFontNames = Arrays.asList(fontNames);
String[] fontNames = GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
List<String> availableFontNames = Arrays.asList(fontNames);