IDEA-166179 [followup] Font size is not preserved after updating to EAP build

JBUI.scaleFontSize shouldn't be used to restore user's font settings as it may screw it.
This commit is contained in:
Anton Tarasov
2017-01-23 17:17:31 +03:00
parent d92daf36b2
commit a924224414
@@ -525,7 +525,7 @@ public abstract class AbstractColorsScheme implements EditorColorsScheme, Serial
if (!isDefault) {
size = (fontScale != null) ? size / fontScale : DEFAULT_FONT_SIZE.getSize();
}
return JBUI.scaleFontSize(size);
return (int)JBUI.scale(size);
}
private void readFontSettings(@NotNull Element element,