[NUI] Minimize system settings API calls in Text
authorBowon Ryu <bowon.ryu@samsung.com>
Tue, 25 Feb 2025 12:02:20 +0000 (21:02 +0900)
committerBowon Ryu <wonrst22@naver.com>
Wed, 26 Feb 2025 01:42:01 +0000 (10:42 +0900)
commit22dd62733bfdd604c2548d5830fa9b0fa4cd77ee
treea7bb9212281a7844f4ef674b80cd84d24d8b0a10
parentb4f4bb0707f245553f3e04e22da4d9148026513c
[NUI] Minimize system settings API calls in Text

Each text component's call to the system API takes a lot of time.
Especially for FontType, initialization of FontConfig occurs natively and consumes most of the time.

This patch updates through static classes only when a specific value is needed.

TODO: manager should handle all events.

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
src/Tizen.NUI/src/internal/Common/SystemFontSizeChangedManager.cs
src/Tizen.NUI/src/internal/Common/SystemFontTypeChangedManager.cs [new file with mode: 0644]
src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs
src/Tizen.NUI/src/public/BaseComponents/TextField.cs
src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs
src/Tizen.NUI/src/public/Theme/DefaultThemeCommon.cs