Set Text Height
The sample listed here describes how to set text height for a piece of inline text based on the current value of one of its attributes.
Refer to the emphasis in para in first sect1 context in the stylesheet Arbortext-path/samples/ALD/Testing/Attributes/applyAttributes.style. The context includes an PTC ALD source code edit. The relevant code is shown below:
style.height = arguments[0].attributes.role;
The first part of the phrase style.height specifies that you want to provide a value for the height property for the style of the context, which is based on an fStyle object. The second half = arguments[0].attributes.role confirms that the role attribute on the current element will provide the value for the height property.
So if the inline text appears as <emphasis role=”30pt”>Inline text</emphasis> in the document source, the value of the height property for the style created for that text is 30pt.