[NUI] Update Font size scale again based on the updated guide
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Thu, 13 Jul 2023 12:56:34 +0000 (21:56 +0900)
committerbshsqa <32317749+bshsqa@users.noreply.github.com>
Tue, 18 Jul 2023 09:41:32 +0000 (18:41 +0900)
- The font size scales are changed according to the latest GUI guide.
- Five stages of Font size scale :
 : 87% -> 100% -> 113% -> 126% -> 140 %

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/TextUtils.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/BaseComponents/TSTextUtils.cs

index 0301e50..93edc25 100755 (executable)
@@ -1139,8 +1139,8 @@ namespace Tizen.NUI.BaseComponents
         // The following values from 'system-settings/libutil/sstu.c'
         private const float FontSizeScaleSmall = 0.87f;
         private const float FontSizeScaleNormal = 1.0f;
-        private const float FontSizeScaleLarge = 1.1f;
-        private const float FontSizeScaleHuge = 1.2f;
+        private const float FontSizeScaleLarge = 1.13f;
+        private const float FontSizeScaleHuge = 1.26f;
         private const float FontSizeScaleGiant = 1.4f;
 #endif
 
index f207012..69c3c0e 100755 (executable)
@@ -1034,19 +1034,19 @@ namespace Tizen.NUI.Devel.Tests
             tlog.Debug(tag, $"TextUtilsGetFontSizeScale START");
 
             var giant = TextUtils.GetFontSizeScale(System.SystemSettingsFontSize.Giant);
-            Assert.AreEqual(2.5f, giant, "Should be equal!");
+            Assert.AreEqual(1.4f, giant, "Should be equal!");
 
             var huge = TextUtils.GetFontSizeScale(System.SystemSettingsFontSize.Huge);
-            Assert.AreEqual(1.9f, huge, "Should be equal!");
+            Assert.AreEqual(1.26f, huge, "Should be equal!");
 
             var large = TextUtils.GetFontSizeScale(System.SystemSettingsFontSize.Large);
-            Assert.AreEqual(1.5f, large, "Should be equal!");
+            Assert.AreEqual(1.13f, large, "Should be equal!");
 
             var normal = TextUtils.GetFontSizeScale(System.SystemSettingsFontSize.Normal);
             Assert.AreEqual(1.0f, normal, "Should be equal!");
 
             var small = TextUtils.GetFontSizeScale(System.SystemSettingsFontSize.Small);
-            Assert.AreEqual(0.8f, small, "Should be equal!");
+            Assert.AreEqual(0.87f, small, "Should be equal!");
 
             tlog.Debug(tag, $"TextUtilsGetFontSizeScale END (OK)");
         }