void () { EditorColorsScheme scheme = getFontCacheScheme(); FontPreferences preferences = scheme.getFontPreferences(); String editorFontName = preferences.getFontFamily(); float editorFontSize = scheme.getEditorFontSize2D(); String fallbackName = getFallbackName(editorFontName); if (fallbackName != null) { editorFontName = fallbackName; } setFont(EditorFontType.PLAIN, editorFontName, Font.PLAIN, editorFontSize, preferences); setFont(EditorFontType.BOLD, editorFontName, Font.BOLD, editorFontSize, preferences); setFont(EditorFontType.ITALIC, editorFontName, Font.ITALIC, editorFontSize, preferences); setFont(EditorFontType.BOLD_ITALIC, editorFontName, Font.BOLD | Font.ITALIC, editorFontSize, preferences); FontPreferences consolePreferences = scheme.getConsoleFontPreferences(); String consoleFontName = scheme.getConsoleFontName(); float consoleFontSize = scheme.getConsoleFontSize2D(); setFont(EditorFontType.CONSOLE_PLAIN, consoleFontName, Font.PLAIN, consoleFontSize, consolePreferences); setFont(EditorFontType.CONSOLE_BOLD, consoleFontName, Font.BOLD, consoleFontSize, consolePreferences); setFont(EditorFontType.CONSOLE_ITALIC, consoleFontName, Font.ITALIC, consoleFontSize, consolePreferences); setFont(EditorFontType.CONSOLE_BOLD_ITALIC, consoleFontName, Font.BOLD | Font.ITALIC, consoleFontSize, consolePreferences); }