mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Revert default font changes (failing tests)
This commit is contained in:
+2
-2
@@ -67,11 +67,11 @@ public class EditorColorsSchemeImplTest extends EditorColorSchemeTestCase {
|
||||
/**
|
||||
* TODO<rv> FIX PROPERLY
|
||||
* This is a hack: since font name is taken from default scheme (why?) where it is explicitly defined as "Dejavu Sans", font names
|
||||
* do not match because default font name on linux in headless environment falls back to FALLBACK_FONT_FAMILY
|
||||
* do not match because default font name on linux in headless environment falls back to WINDOWS_DEFAULT_FONT_FAMILY (why?)
|
||||
*/
|
||||
private static String substLinuxFontName(@NotNull String fontName) {
|
||||
return SystemInfo.isLinux && GraphicsEnvironment.isHeadless() && FontPreferences.LINUX_DEFAULT_FONT_FAMILY.equals(fontName)?
|
||||
FontPreferences.FALLBACK_FONT_FAMILY :
|
||||
FontPreferences.WINDOWS_DEFAULT_FONT_FAMILY :
|
||||
fontName;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user