@@ -0,0 +1,1423 @@
+// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.%0Apackage com.intellij.ui;%0A%0Aimport com.intellij.ide.ui.UISettings;%0Aimport com.intellij.ide.ui.laf.LafManagerImpl;%0Aimport com.intellij.ide.ui.laf.darcula.DarculaLookAndFeelInfo;%0Aimport com.intellij.testFramework.PlatformTestCase;%0A%0Aimport javax.swing.*;%0Aimport java.awt.*;%0A%0A/**%0A * @author Konstantin Bulenkov%0A */%0Apublic class LafManagerTest extends PlatformTestCase %7B%0A%0A  public void testCustomFont() %7B%0A    String fontFace = UISettings.getInstance().getFontFace();%0A    int fontSize = UISettings.getInstance().getFontSize();%0A%0A    try %7B%0A      UISettings instance = UISettings.getInstance();%0A      String newFontName = %22Arial%22;%0A      int newFontSize = 17;%0A      instance.setFontFace(newFontName);%0A      instance.setFontSize(newFontSize);%0A      instance.setOverrideLafFonts(true);%0A      LafManagerImpl lafManager = LafManagerImpl.getTestInstance();%0A      lafManager.setCurrentLookAndFeel(new DarculaLookAndFeelInfo());%0A      lafManager.updateUI();%0A      Font font = UIManager.getFont(%22Label.font%22);%0A      assertEquals(%22Font name is not changed%22, newFontName, font.getFamily());%0A      assertEquals(%22Font size is not changed%22, newFontSize, font.getSize());%0A    %7D finally %7B%0A      UISettings.getInstance().setFontFace(fontFace);%0A      UISettings.getInstance().setFontSize(fontSize);%0A    %7D%0A  %7D%0A%7D%0A

test for IDEA-193316