IDEA-111528 ("missing font" fatality defeated)

This commit is contained in:
Roman Shevchenko
2013-08-05 16:56:58 +02:00
parent 1e340c8677
commit 583701042d
2 changed files with 7 additions and 5 deletions
@@ -81,8 +81,6 @@ public class StartupUtil {
if (!Main.isHeadless()) {
AppUIUtil.updateFrameClass();
AppUIUtil.updateWindowIcon(JOptionPane.getRootFrame());
AppUIUtil.registerBundledFonts();
newConfigFolder = PathManager.ensureConfigFolderExists(true);
if (newConfigFolder) {
@@ -101,6 +99,11 @@ public class StartupUtil {
fixProcessEnvironment(log);
loadSystemLibraries(log);
if (!Main.isHeadless()) {
AppUIUtil.updateWindowIcon(JOptionPane.getRootFrame());
AppUIUtil.registerBundledFonts();
}
appStarter.start(newConfigFolder);
}
@@ -45,7 +45,6 @@ import java.util.List;
* @author yole
*/
public class AppUIUtil {
private static final Logger LOG = Logger.getInstance("#com.intellij.ui.AppUIUtil");
private static final String VENDOR_PREFIX = "jetbrains-";
public static void updateWindowIcon(@NotNull Window window) {
@@ -159,7 +158,7 @@ public class AppUIUtil {
}
}
catch (Exception e) {
LOG.error("Cannot register font: " + name, e);
Logger.getInstance(AppUIUtil.class).error("Cannot register font: " + name, e);
}
}
@@ -174,4 +173,4 @@ public class AppUIUtil {
}
});
}
}
}