[NUI] Add FontPreLoad API to FontClient
authorBowon Ryu <bowon.ryu@samsung.com>
Tue, 9 May 2023 11:07:39 +0000 (20:07 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 22 May 2023 10:12:20 +0000 (19:12 +0900)
commite7e767b1cb5cba417b68cae68f7e53543ce2e037
tree24b5eaffb51549cccc58938a2944ad2e8079474b
parent08b2b4184349edd8bc75ef97696a278a0fbca7d1
[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