- Don't write editor font name twice when old font settings are used
- Return font family from getFontName() as expected by tests
This commit is contained in:
Rustam Vishnyakov
2017-04-18 17:59:04 +03:00
parent 0b70cdebcd
commit 8163dfb048
@@ -249,7 +249,7 @@ public abstract class AbstractColorsScheme extends EditorFontCacheImpl implement
@Override
public String getEditorFontName() {
return getFont(EditorFontType.PLAIN).getFontName();
return getFont(EditorFontType.PLAIN).getFamily();
}
@Override
@@ -601,10 +601,6 @@ public abstract class AbstractColorsScheme extends EditorFontCacheImpl implement
JdomKt.addOptionTag(parentNode, EDITOR_QUICK_JAVADOC_FONT_SIZE, getQuickDocFontSize().toString());
}
if (useOldFontFormat) {
JdomKt.addOptionTag(parentNode, EDITOR_FONT_NAME, myFontPreferences.getFontFamily());
}
Element colorElements = new Element(COLORS_ELEMENT);
Element attrElements = new Element(ATTRIBUTES_ELEMENT);