mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 10:41:06 +00:00
Enable back detecting installed fonts. (FFDec must be restarted to refresh such list)
This commit is contained in:
@@ -101,10 +101,10 @@ public class FontPanel extends JPanel {
|
||||
public static ComboBoxModel<FontFace> getFaceModel(FontFamily family) {
|
||||
|
||||
Set<FontFace> faceSet = new TreeSet<>();
|
||||
/*NOT AVAILABLE SINCE JAVA 9+
|
||||
|
||||
for (Font f : FontTag.getInstalledFontsByFamily().get(family.familyEn).values()) {
|
||||
faceSet.add(new FontFace(f));
|
||||
}*/
|
||||
}
|
||||
|
||||
return new DefaultComboBoxModel<>(new Vector<>(faceSet));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user