Text Algorithm
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
The text (tx) algorithm sizes text to fit inside a shape and controls its margins and alignment.
Parameters
Parameter |
Values |
Description |
---|---|---|
autoTxRot |
|
Specifies how text is oriented relative to the shape. |
lnSpAfChP |
A double-precision numeric value from 0 through 1000. The default is 10. |
Specifies the line spacing after child paragraphs. |
lnSpAfParP |
A double-precision numeric value from 0 through 1000. The default is 20. |
Specifies the line spacing after parent paragraphs. |
lnSpCh |
A double-precision numeric value from 0 through 1000. The default is 75. |
Specifies the line spacing of child text. |
lnSpPar |
A double-precision numeric value from 0 through 1000. The default is 85. |
Specifies the line spacing of parent text. |
parTxLTRAlign |
|
Specifies the paragraph alignment of parent text when the shape has only parent text; applies when the text direction is left to right. |
parTxRTLAlign |
|
Specifies the paragraph alignment of parent text when the shape has only parent text; applies when the text direction is right to left. |
shpTxLTRAlignCh |
|
Specifies the paragraph alignment of all text in the shape when the shape contains both parent and child text; applies when the text direction is left to right. |
shpTxRTLAlignCh |
|
Specifies the paragraph alignment of all text in the shape when the shape contains both parent and child text; applies when the text direction is right to left. |
stBulletLvl |
|
Specifies whether bullets start at the top level or at the child level. |
txAnchorHorz |
|
Specifies the x-axis anchoring of the text area in a shape. |
txAnchorHorzCh |
|
Specifies that the definition can allow a different text anchoring on the x-axis, if child nodes exist in the shape. |
txAnchorVertCh |
|
Specifies that the definition can allow a different text anchoring on the y-axis, if child nodes exist in the shape. |
txAnchorVert |
|
Specifies the y-axis anchoring of the text area in a shape. |
txBlDir |
|
Specifies whether the text block is vertical or horizontal. |
horzAlign |
|
Aligns all the child nodes in the space reserved for the parent node and adjusts child positions along the x-axis. |
vertAlign |
|
Aligns all the child nodes in the space reserved for the parent node and adjusts child positions along the y-axis. |
Constraints
Constraint |
Default value |
Description |
---|---|---|
w |
100 |
Specifies the width of the bounding box for a node. |
h |
100 |
Specifies the height of the bounding box for a node. |
primFontSz |
100 |
Specifies the font size in points. |
secFontSize |
100 |
Specifies the size of bulleted text in points. |
tMarg |
primFontSz * .78 |
Specifies the distance between the top of the shape’s text region and the text’s bounding box. |
bMarg |
primFontSz * .6 |
Specifies the distance between the bottom of the shape’s text region and the text’s bounding box. |
lMarg |
primFontSz * .42 |
Specifies the distance between the left side of the shape’s text region and the text’s bounding box. |
rMarg |
primFontSz * .42 |
Specifies the distance between the right side of the shape’s text region and the text’s bounding box. |