fix changing font and size on metal lnf

This commit is contained in:
Zlatin Balevsky
2019-10-30 22:20:27 +00:00
parent d0462034fc
commit 5b0180280e

View File

@@ -156,8 +156,10 @@ class Initialize extends AbstractLifecycleHandler {
while(keys.hasMoreElements()) {
def key = keys.nextElement()
def value = lnf.getDefaults().get(key)
if (value instanceof FontUIResource)
if (value instanceof FontUIResource) {
lnf.getDefaults().put(key, font)
UIManager.put(key, font)
}
}
}
} else {