From a924224414597076fdab32eb412d126c36e596e7 Mon Sep 17 00:00:00 2001 From: Anton Tarasov Date: Mon, 23 Jan 2017 17:10:01 +0300 Subject: [PATCH] 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. --- .../openapi/editor/colors/impl/AbstractColorsScheme.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/editor-ui-ex/src/com/intellij/openapi/editor/colors/impl/AbstractColorsScheme.java b/platform/editor-ui-ex/src/com/intellij/openapi/editor/colors/impl/AbstractColorsScheme.java index 247d89fa6210..eedf4c8f199f 100644 --- a/platform/editor-ui-ex/src/com/intellij/openapi/editor/colors/impl/AbstractColorsScheme.java +++ b/platform/editor-ui-ex/src/com/intellij/openapi/editor/colors/impl/AbstractColorsScheme.java @@ -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,