[NUI] Add FontPreLoad API to FontClient
authorBowon Ryu <bowon.ryu@samsung.com>
Tue, 9 May 2023 11:07:39 +0000 (20:07 +0900)
committerBowon Ryu <wonrst22@naver.com>
Fri, 12 May 2023 08:05:34 +0000 (17:05 +0900)
commit7ca78b230123dc01612fec1a0c981516349aeb51
tree762e83c7fbd17d7801139317e0d2fe863efb5961
parent1294a19901818813305e8f3ecddebe481d4452fb
[NUI] Add FontPreLoad API to FontClient

This patch adds a new FontPreLoad API that preloads font faces.
this can prevents delays on main thread during the inital call of FT_New_Face.

using memoryFontPathList involves loading font buffers into memory.
And using FT_New_Memory_Face at runtime, which uses more memory
but can lead to greater performance improvements.

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
src/Tizen.NUI/src/internal/Interop/Interop.FontClient.cs
src/Tizen.NUI/src/public/Utility/FontClient.cs