mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-27 08:26:28 +00:00
loading list of fonts on demand - X11 load bug on Java9
This commit is contained in:
@@ -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()});
|
||||
|
||||
Reference in New Issue
Block a user