Support Strikethrough with Height attribute in markup
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / markup-processor-span.cpp
index 636c331..1b3cdc2 100644 (file)
@@ -55,6 +55,7 @@ const std::string XHTML_UNDERLINE_DASH_WIDTH_ATTRIBUTE("u-dash-width");
 
 //the strikethroughed character's attributes
 const std::string XHTML_STRIKETHROUGH_COLOR_ATTRIBUTE("s-color");
+const std::string XHTML_STRIKETHROUGH_HEIGHT_ATTRIBUTE("s-height");
 
 } // namespace
 
@@ -143,6 +144,11 @@ void ProcessSpanTag(const Tag&                 tag,
       isStrikethroughDefined = true;
       ProcessColorAttribute(attribute, strikethroughRun);
     }
+    else if(TokenComparison(XHTML_STRIKETHROUGH_HEIGHT_ATTRIBUTE, attribute.nameBuffer, attribute.nameLength))
+    {
+      isStrikethroughDefined = true;
+      ProcessHeightAttribute(attribute, strikethroughRun);
+    }
   }
 }