loading list of fonts on demand - X11 load bug on Java9

This commit is contained in:
Jindra Petřík
2018-01-20 21:09:27 +01:00
parent 56302e6e90
commit fc19983ae9
6 changed files with 47 additions and 20 deletions

View File

@@ -2676,7 +2676,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
if (fontName == null) {
fontName = font.getFontName();
}
final Font f = FontTag.installedFontsByName.get(fontName);
final Font f = FontTag.getInstalledFontsByName().get(fontName);
if (f == null || !f.canDisplay(character)) {
String msg = translate("error.font.nocharacter").replace("%char%", "" + character);
logger.log(Level.SEVERE, "{0} FontId: {1} TextId: {2}", new Object[]{msg, font.getCharacterId(), textTag.getCharacterId()});