Text Decoration — Text Outline
The sample listed here describes how to set properties for outline color and outline thickness for the characters in a piece of inline text.
Inline text is tagged as emphasis in Arbortext-path/samples/APP/TextProperties/textProperties.xml. Each piece of inline text in the paragraphs in the Text decoration — text outline section have a role attribute set. The attribute can have a value of outline 1, outline 2, outline 3, or outline 4. Each value references a different property set, which apply different values for the outline color and outline thickness properties for the text’s characters.
For example, the emphasis element with the attribute value role=”outline1” forms the condition ELSE IF attribute "role"= "outline1" of emphasis everywhere in the associated stylesheet. The condition references property set outline1.
The relevant code from the property set is given below:
style.outlineColor = "red";
style.outlineThickness = "1pt";
• style.outlineColor = "red";
The first part of the phrase style.outlineColor specifies that you want to provide an outlineColor property to the fStyle object that applies the current styling to the inline text. That property calls a fColor object.
The second half = "red" applies a direct value of red for the outlineColor property. Note the double quotes, which denote that the value should be processed as a string.
The value will be stored as the name property of the fColor object.
• style.outlineThickness = "1pt";
The first part of the phrase style.outlineThickness specifies that you want to provide an outlineThickness property to the fStyle object that applies the current styling to the inline text. That property calls a fLength object.
The second half = "1pt"; applies a direct value of 1pt for the outlineThickness property.
The value will be stored as the value property of a fLength object.