ETF: pass logical font name

On my machine getFontName returned Dialog.plain and wasn't found.
getName returns Dialog and everything works

GitOrigin-RevId: e9e130786c28e7526371779e05379e0e699c5acb
This commit is contained in:
Alexander.Kass
2024-02-27 17:57:35 +02:00
committed by intellij-monorepo-bot
parent 2f383c86f9
commit d584ee473a

View File

@@ -782,7 +782,7 @@ public class EditorTextField extends NonOpaquePanel implements EditorTextCompone
private void setupEditorFont(final EditorEx editor) {
if (myInheritSwingFont) {
((EditorImpl)editor).setUseEditorAntialiasing(false);
editor.getColorsScheme().setEditorFontName(getFont().getFontName());
editor.getColorsScheme().setEditorFontName(getFont().getName());
editor.getColorsScheme().setEditorFontSize(getFont().getSize());
return;
}