Temporary fix of PreInitialize, Remove FontClient 07/228707/1
authorhuiyu.eun <huiyu.eun@samsung.com>
Wed, 25 Mar 2020 04:13:35 +0000 (13:13 +0900)
committerhuiyu.eun <huiyu.eun@samsung.com>
Wed, 25 Mar 2020 04:13:35 +0000 (13:13 +0900)
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>
dali/internal/adaptor/common/application-impl.cpp

index 98ef0db..28ac1a3 100755 (executable)
@@ -83,11 +83,6 @@ void Application::PreInitialize( int* argc, char** argv[] )
     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 );
   }
 }