[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:41:59 +0000 (10:41 +0900)
commit9f41df268369f1546bb09aaf18991c4ec9cbfc35
tree766b6f7c2e6626cc0001577706ad4ea43113ed1a
parentfec0497e4468efe4c29df4c9e19c8c2d2eabfeb5
[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