void () { initText(""); EditorColorsScheme colorsScheme = getEditor().getColorsScheme(); FontPreferencesImpl preferences = new FontPreferencesImpl(); preferences.register("CustomFont", 32); preferences.setUseLigatures(true); colorsScheme.setFontPreferences(preferences); FontPreferences p = colorsScheme.getFontPreferences(); assertEquals(Collections.singletonList("CustomFont"), p.getRealFontFamilies()); assertEquals(32, p.getSize("CustomFont")); assertTrue(p.useLigatures()); FontPreferencesImpl preferences2 = new FontPreferencesImpl(); preferences2.register("CustomFont2", 23); preferences2.setUseLigatures(false); colorsScheme.setFontPreferences(preferences2); FontPreferences p2 = colorsScheme.getFontPreferences(); assertEquals(Collections.singletonList("CustomFont2"), p2.getRealFontFamilies()); assertEquals(23, p2.getSize("CustomFont2")); assertFalse(p.useLigatures()); }