Für Chinesisch wird bei mir nur angezeigt:
187 font families installed
Microsoft JhengHei
Microsoft JhengHei Light
Microsoft JhengHei UI
Microsoft JhengHei UI Light
Microsoft YaHei
Microsoft YaHei UI
Yu Gothic
Yu Gothic Light
Yu Gothic Medium
Yu Gothic UI
Yu Gothic UI Light
Yu Gothic UI Semibold
Yu Gothic UI Semilight
(Oracle JDK 8u201)
Code:
final String MY_STRING = "\u2e8f";
initComponents();
jLabel1.setText(MY_STRING);
String[] fonts = GraphicsEnvironment.getLocalGraphicsEnvironment().
getAvailableFontFamilyNames();
System.out.println(fonts.length + " font families installed");
List<String> supportedFonts = new ArrayList<>();
for (String fontName : fonts) {
Font f = new Font(fontName, Font.PLAIN, 1);
if (f.canDisplayUpTo(MY_STRING)<0) {
System.out.println(fontName);
supportedFonts.add(fontName);
}
}
String[] a = supportedFonts.toArray(new String[0]);
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(a));
Segoe UI fehlt, was auch der Microsoft-Dokumentation entspricht.