diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/editor/colors/impl/EditorColorsSchemeImplTest.java b/platform/platform-tests/testSrc/com/intellij/openapi/editor/colors/impl/EditorColorsSchemeImplTest.java index acd6aff98360..21b1d14331eb 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/editor/colors/impl/EditorColorsSchemeImplTest.java +++ b/platform/platform-tests/testSrc/com/intellij/openapi/editor/colors/impl/EditorColorsSchemeImplTest.java @@ -432,10 +432,8 @@ public class EditorColorsSchemeImplTest extends EditorColorSchemeTestCase { } public void testReadFontPreferences() throws Exception { - String[] fontFamilyNames = GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames(); - if (fontFamilyNames.length < 2) return; - String name1 = fontFamilyNames[0]; - String name2 = fontFamilyNames[1]; + String name1 = getExistingNonDefaultFontName(); + String name2 = getAnotherExistingNonDefaultFontName(); EditorColorsScheme scheme = loadScheme( "\n" + "