mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-111528 ("missing font" fatality defeated)
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user