Fix performance down if DefaultFontDescription not prepared 84/290684/3
authorEunki Hong <eunkiki.hong@samsung.com>
Thu, 30 Mar 2023 19:05:47 +0000 (04:05 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Fri, 31 Mar 2023 06:58:30 +0000 (15:58 +0900)
commitb59a021650a941e4c1b5a0644bdd64034a8254be
tree4aae08df8bb3c6a1a68669b271336abff9c66858
parentf79805402bf8bd9b7ceb4561d4c089411fb5927f
Fix performance down if DefaultFontDescription not prepared

Since FontDescription cache system have some problem if family is empty.
So we use DefaultFontDescription if inputed family is empty.

But we try to delay the FontClient creation time as possible.
If that case, It it possible that Default informations are not prepared yet.

This patch ensure the mDefaultFontDescription prepared at FontClient::Get().
So now, we can ensure to use FontId cache system well.

TODO : We might fix empty family bugs if possible

Change-Id: I72f5f7a581186addd130848f257f939cd24e094a
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
automated-tests/src/dali-adaptor-internal/utc-Dali-FontClient.cpp
dali/internal/text/text-abstraction/font-client-impl.cpp
dali/internal/text/text-abstraction/plugin/font-client-plugin-impl.cpp