We cannot use a singleton service before the core is created.
FontClient takes the most launch time to load dali application.
we have to modify the code to use FontClient in PreInitialize function.
Change-Id: I085bf894bf298486e1756f62394562a46b820694
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
gPreInitializedApplication = new Application ( argc, argv, "", Dali::Application::OPAQUE, PositionSize(), Framework::NORMAL );
gPreInitializedApplication->CreateWindow(); // Only create window
gPreInitializedApplication->mLaunchpadState = Launchpad::PRE_INITIALIZED;
-
- //Make DefaultFontDescription cached
- Dali::TextAbstraction::FontClient fontClient = Dali::TextAbstraction::FontClient::Get();
- Dali::TextAbstraction::FontDescription defaultFontDescription;
- fontClient.GetDefaultPlatformFontDescription( defaultFontDescription );
}
}