Make sure that global variables are initialized lazily. Global variables are initialized before main function or when dali so is loaded firstly. This patch is to reduce loading time of dali in theory. Change-Id: Ica5e9c063e1be2dfe2aa5f7865705481422063d9
Support character-spacing tag in markup How to apply it in TextEditor: textEditor.SetProperty(Dali::Toolkit::TextEditor::Property::TEXT, "Hello <char-spacing value='-3.0f'>Hello </char-spacing>" "<char-spacing value='3.0f'>Hello </char-spacing>" "<char-spacing value='-6.0f'>Hello </char-spacing>" "<char-spacing value='6.0f'>Hello </char-spacing>" "<char-spacing value='0.0f'>Hello </char-spacing>"); textEditor.SetProperty(Dali::Toolkit::TextEditor::Property::ENABLE_MARKUP, true); Change-Id: Ic24b6cd7e0b88fba175fdc008345956a8fa7980f
Handled nested tags in strikethrough The inner tag inherit the attributes of the outer tag and override them when defined in the inner tag Example: "<s height='5.0f' color='blue'> outer tag before <s color='green'> inner tag </s> outer tag after </s>" "outer tag before" and "outer tag after" have height = 5.0f and color = 'blue' "inner tag" has height = 5.0f and color = 'green' This patch should be preceded by the patch below: https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/272264 Change-Id: I7426507b14c73f09aca67b9a22173e8ee5c0db29
Resolve cases for strikethrough when using multiple <s> tags 1- Last color is applied for all tags when using multiple <s> tags 2- Draw strikethrough on text between two <s> tags 3- Standardize strikethrough code. Make strikethrough code similar to underline code. Change-Id: I6d6c7c7435423083ca788686b04b97ff554bdb88
Improve the underline markup 1) Handle nested tags: The inner tag inherit the attributes of the outer tag and override them when defined in the inner tag Example: "<u height='5.0f' color='blue'> outer tag before <u color='green'> inner tag </u> outer tag after </u>" "outer tag before" and "outer tag after" have height = 5.0f and color = 'blue' "inner tag" has height = 5.0f and color = 'green' 2) Enhanced the performance of underline-runs and reduced the needed memory to store glyphs-runs This patch should be preceded by the patch below: https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/271685 Change-Id: I529aacd66c83fb1e55e282a7b849c901c3e0c67a
Support Markup Underline attributes Underline attributes: - type - color - height - dash-gap - dash-width How to apply it: ========================================================================================= TextLabel textLabel = TextLabel::New(); std::string exampleText = "START<u>only underline</u>THEN" "<u type='solid'>type is solid</u>THEN" "<u type='dashed'>type is dashed</u>THEN" "<u type='double'>type is double</u>THEN" "<u color='green'>color is green</u>THEN" "<u height='5.0f'>height is 5</u>THEN" "<u type='dashed' dash-gap='3.0f'>dashGap is 3</u>THEN" "<u type='dashed' dash-width='4.0f'>dashWidth is 4</u>THEN" "<u color='blue' type='dashed' height='4.0f' dash-gap='2.0f' dash-width='3.0f'>all attributes</u>END"; textLabel.SetProperty(Dali::Toolkit::TextLabel::Property::TEXT, exampleText); textLabel.SetProperty(Dali::Toolkit::TextLabel::Property::ENABLE_MARKUP, true); textLabel.SetProperty(Dali::Toolkit::TextLabel::Property::MULTI_LINE, true); ========================================================================================= This patch should be preceded by the patch below: https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/271187 Change-Id: I4ca7f11a1b0eeab51e90b48c3d1bbc470ad628e8