void (Object value) { boolean monospaced = Boolean.TRUE.equals(value); if (this.monospaced != monospaced) { this.monospaced = monospaced; JTextComponent component = getComponent(); if (component != null) { Font font = component.getFont(); if (font == null || font instanceof UIResource) { font = UIManager.getFont(getPropertyPrefix() + ".font"); if (font == null) font = UIManager.getFont("TextField.font"); if (font == null) font = UIManager.getFont("Label.font"); component.setFont(!monospaced ? !SystemInfo.isMacOSCatalina ? font : FontUtil.disableKerning(font) : EditorUtil.getEditorFont(font.getSize())); } } } }