Enable back detecting installed fonts. (FFDec must be restarted to refresh such list)

This commit is contained in:
Jindra Petřík
2021-01-01 01:08:32 +01:00
parent 653879b589
commit b20eeafe53
5 changed files with 10 additions and 15 deletions
@@ -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));
}