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

  • none

  • upr (upright, default)

  • grav (gravity)

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

  • l (left)

  • ctr (center, default)

  • r (right)

Specifies the paragraph alignment of parent text when the shape has only parent text; applies when the text direction is left to right.

parTxRTLAlign

  • l (left)

  • ctr (center, default)

  • r (right)

Specifies the paragraph alignment of parent text when the shape has only parent text; applies when the text direction is right to left.

shpTxLTRAlignCh

  • l (left)

  • ctr (center, default)

  • r (right)

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

  • l (left)

  • ctr (center, default)

  • r (right)

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

  • 1 (top level)

  • 2 (child level, default)

Specifies whether bullets start at the top level or at the child level.

txAnchorHorz

  • none (default)

  • ctr (center)

Specifies the x-axis anchoring of the text area in a shape.

txAnchorHorzCh

  • none (default)

  • ctr (center)

Specifies that the definition can allow a different text anchoring on the x-axis, if child nodes exist in the shape.

txAnchorVertCh

  • t (top)

  • mid (middle, default)

  • b (bottom)

Specifies that the definition can allow a different text anchoring on the y-axis, if child nodes exist in the shape.

txAnchorVert

  • t (top)

  • mid (middle, default)

  • b (bottom)

Specifies the y-axis anchoring of the text area in a shape.

txBlDir

  • horz (horizontal, default)

  • vert (vertical)

Specifies whether the text block is vertical or horizontal.

horzAlign

  • l (left)

  • ctr (center, default)

  • r (right)

Aligns all the child nodes in the space reserved for the parent node and adjusts child positions along the x-axis.

vertAlign

  • t (top)

  • mid (middle, default)

  • b (bottom)

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.

See Also

Concepts

Algorithms, Parameters, and Constraints