Index: ui/views/examples/examples_main.cc |
diff --git a/ui/views/examples/examples_main.cc b/ui/views/examples/examples_main.cc |
index 5baf70290cb196eb23bd42b7ab0ce0bd322af17c..b46f9a1496edc978006714f1b801b649a693b205 100644 |
--- a/ui/views/examples/examples_main.cc |
+++ b/ui/views/examples/examples_main.cc |
@@ -30,6 +30,7 @@ |
#if defined(OS_WIN) |
#include "ui/base/win/scoped_ole_initializer.h" |
+#include "ui/gfx/win/direct_write.h" |
#endif |
#if defined(USE_X11) |
@@ -68,6 +69,10 @@ int main(int argc, char** argv) { |
DCHECK(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path)); |
ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path); |
+#if defined(OS_WIN) |
+ gfx::win::MaybeInitializeDirectWrite(); |
+#endif |
+ |
#if defined(USE_AURA) |
aura::Env::CreateInstance(true); |
aura::Env::GetInstance()->set_context_factory(context_factory.get()); |