Add TextFitArray
authorBowon Ryu <bowon.ryu@samsung.com>
Tue, 10 Oct 2023 02:20:47 +0000 (11:20 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Tue, 31 Oct 2023 14:07:28 +0000 (23:07 +0900)
commit16cc52a8580771df8edc3791df235cf01e885c1f
tree67308d2237a826d89ddb9ff8afd8eab4a2774c17
parent208f7a9020c16155e2f3647b041aeb117c0e5e64
Add TextFitArray

Add a new function to satisfy the UX that
operates TextFit by considering the PointSize and MinLineSize of the text.

For example, TextFit should be able to find the one that
fits among [PointSize 24 + MinLineSize 40] or [PointSize 28 + MinLineSize 44].

But the previous TextFit only considers PointSize.

TextFitArray can solve this problem,
and this implemented it to respond to additional requirements without modifying the API.

https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-toolkit/+/299557/
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-csharp-binder/+/299690/

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
src/Tizen.NUI/src/internal/Interop/Interop.TextLabel.cs
src/Tizen.NUI/src/public/BaseComponents/TextConstants.cs
src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs
src/Tizen.NUI/src/public/BaseComponents/TextMapHelper.cs
src/Tizen.NUI/src/public/BaseComponents/TextUtils.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/TextFitChangedSample.cs