Skip to content

Commit

Permalink
Font: Fix font replacement predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
weisJ committed Jul 21, 2021
1 parent 8775cbc commit 1b0752e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ private void loadFontProperties(final UIDefaults defaults) {

private void patchOSFonts(final UIDefaults defaults, final Function<Map.Entry<Object, Font>, Font> mapper) {
PropertyLoader.replacePropertyEntriesOfType(Font.class, defaults,
e -> Font.DIALOG.equals(e.getValue().getName()), mapper);
e -> isDefaultFont(e.getValue()), mapper);
}

private boolean isDefaultFont(final Font font) {
return Font.DIALOG.equals(font.getFamily());
}

private Font mapMacOSFont(final Map.Entry<Object, Font> entry) {
Expand Down

0 comments on commit 1b0752e

Please sign in to comment.