[NUI] Add SetFontStyle, GetFontStyle to Text Components
authorBowon Ryu <bowon.ryu@samsung.com>
Mon, 9 Aug 2021 09:34:42 +0000 (18:34 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 18 Aug 2021 03:10:44 +0000 (12:10 +0900)
commit4ff23615a5305ec1e1ad8dac459b5146f9de2981
tree39097f227b6220f4e40b21d29dff4b0c62bad6b3
parent224da7d76de99313b109db6de456ca69889169f4
[NUI] Add SetFontStyle, GetFontStyle to Text Components

Add a FontStyle struct to pass data of DALi FontStyle PropertyMap.
The FontStyle struct can be used as an argument to
SetFontStyle, GetFontStyle, SetInputFontStyle and GetInputFontStyle methods.

If a placeholder struct is added later, it can be used as a property of the placeholder.

// example
var fontStyle = new Tizen.NUI.Text.FontStyle();
fontStyle.Width = FontWidthType.Expanded;
fontStyle.Weight = FontWeightType.Bold;
fontStyle.Slant = FontSlantType.Italic;
textLabel.SetFontStyle(fontStyle);

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
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/BaseComponents/TextUtils.cs
src/Tizen.NUI/src/public/Common/NUIConstants.cs