Index: ui/views/mus/aura_init.cc |
diff --git a/ui/views/mus/aura_init.cc b/ui/views/mus/aura_init.cc |
index 2d0981b9e1aaafa8790fadb890dec96ee9362e78..7d502b0d57af3318067573f85bcae46626ee2645 100644 |
--- a/ui/views/mus/aura_init.cc |
+++ b/ui/views/mus/aura_init.cc |
@@ -55,6 +55,16 @@ AuraInit::AuraInit(shell::Connector* connector, |
ui::MaterialDesignController::Initialize(); |
InitializeResources(connector); |
+// Initialize the skia font code to go ask fontconfig underneath. |
+#if defined(OS_LINUX) |
+ font_loader_ = sk_make_sp<font_service::FontLoader>(connector); |
+ SkFontConfigInterface::SetGlobal(font_loader_.get()); |
+#endif |
+ |
+ // There is a bunch of static state in gfx::Font, by running this now, |
+ // before any other apps load, we ensure all the state is set up. |
+ gfx::Font(); |
+ |
ui::InitializeInputMethodForTesting(); |
} |
@@ -92,16 +102,6 @@ void AuraInit::InitializeResources(shell::Connector* connector) { |
if (!resource_file_200_.empty()) |
ui::ResourceBundle::GetSharedInstance().AddDataPackFromFile( |
loader.TakeFile(resource_file_200_), ui::SCALE_FACTOR_200P); |
- |
-// Initialize the skia font code to go ask fontconfig underneath. |
-#if defined(OS_LINUX) |
- font_loader_ = sk_make_sp<font_service::FontLoader>(connector); |
- SkFontConfigInterface::SetGlobal(font_loader_.get()); |
-#endif |
- |
- // There is a bunch of static state in gfx::Font, by running this now, |
- // before any other apps load, we ensure all the state is set up. |
- gfx::Font(); |
} |
} // namespace views |