The text element creates a text object with the attributes described below. Unlike htmlText, the text element does not process tags. If the text element contains some tags, they will be displayed in the text as they appear in the source code.
<text id="objectId" x="xPosition" y="yPosition"
width="objectWidth" height="objectHeight" [color="color"]
[font="fontName"] [fontId="embededFontId"] [fontSize=""]
[leftMargin=""] [rightMargin=""]
[indent="textIndent"] [leading="lineSpacing"]
[autoSize="isSizeAuto"] [border="hasBorder"]
[multiline="isMultiline"] [selectable="isSelectable"]
>
<![CDATA[Here goes your text...]]>
</text>
Name |
Description |
Value type |
Optional |
Default Value |
| id |
Object identifier |
no |
- |
|
| x |
Absolute x position (in pixels or twips). |
no |
- |
|
| y |
Absolute y position (in pixels or twips). |
no |
- |
|
| width |
Rectangle width (in pixels or twips). |
no |
- |
|
| height |
Rectangle height (in pixels or twips). |
no |
- |
|
| color |
Color of the text. |
yes |
- |
|
| font |
System font name which will be used to draw this text. If embedded font with the same name exists, it will not be used still. |
yes |
- |
|
| fontId |
Identifier of emeded font object which will be used to draw this text. Overrides font attribute if both are specified. |
yes |
- |
|
| fontSize |
Height of the font in standard coordinate units. |
yes |
- |
|
| leftMargin |
Left margin (empty space between the left side of the text and the bounding box). |
yes |
- |
|
| rightMargin |
Right margin (empty space between the right side of the text and the bounding box). |
yes |
- |
|
| indent |
Indents the first line of paragraphs. |
yes |
- |
|
| leading |
Defines line spacing. |
yes |
- |
|
| autoSize |
Enables text resize with movie if true. |
yes |
false |
|
| border |
Creates a border around the text frame. |
yes |
false |
|
| multiline |
Makes a multiline text object. |
yes |
true |
|
| wordWrap |
Enables text area word wrap. |
yes |
true |
|
| selectable |
Enables text selection. |
yes |
false |