mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
make JetBrains Mono 13/1.2 default font configuration for the editor
GitOrigin-RevId: e056c81fc7fa4f391f9a4f358a826b970cdc3eb3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
84cbc404f4
commit
07e34c2b11
@@ -14,7 +14,8 @@ import java.util.List;
|
||||
|
||||
public class FontPreferences {
|
||||
public final static @NonNls @NotNull String DEFAULT_FONT_NAME = getDefaultFontName();
|
||||
public final static int DEFAULT_FONT_SIZE = SystemInfo.isWindows ? 13 : FontSize.SMALL.getSize();
|
||||
public static final String JETBRAINS_MONO = "JetBrains Mono";
|
||||
public final static int DEFAULT_FONT_SIZE = SystemInfo.isWindows || JETBRAINS_MONO.equalsIgnoreCase(DEFAULT_FONT_NAME) ? 13 : FontSize.SMALL.getSize();
|
||||
|
||||
public final static float DEFAULT_LINE_SPACING = 1.2f;
|
||||
public final static String FALLBACK_FONT_FAMILY = "Monospaced";
|
||||
@@ -79,6 +80,9 @@ public class FontPreferences {
|
||||
}
|
||||
|
||||
public static String getDefaultFontName() {
|
||||
if (SystemInfo.isJetBrainsJvm && SystemInfo.isJavaVersionAtLeast(11)) {
|
||||
return JETBRAINS_MONO;
|
||||
}
|
||||
if (SystemInfo.isWindows) return WINDOWS_DEFAULT_FONT_FAMILY;
|
||||
if (SystemInfo.isMacOSSnowLeopard) return MAC_OS_DEFAULT_FONT_FAMILY;
|
||||
if (SystemInfo.isXWindow && !GraphicsEnvironment.isHeadless() && !ApplicationManager.getApplication().isCommandLine()) {
|
||||
|
||||
Reference in New Issue
Block a user