Text document
TextDocument
¶
Stores a value for a TextLayer's Source Text property.
Example
See: https://ae-scripting.docsforadobe.dev/text/textdocument/
Attributes¶
apply_fill
¶
When True, the Text layer shows a fill. Read / Write.
apply_stroke
¶
When True, the Text layer shows a stroke. Read / Write.
auto_hyphenate
¶
The Text layer's auto hyphenate option. Read / Write.
auto_kern_type
¶
auto_kern_type: AutoKernType = NO_AUTO_KERN
The Text layer's auto kern type option. Read / Write.
auto_leading
¶
The Text layer's auto leading option. Read / Write.
baseline_direction
¶
baseline_direction: BaselineDirection = BASELINE_WITH_STREAM
The Text layer's baseline direction. Read / Write.
baseline_shift
¶
This Text layer's baseline shift in pixels. Read / Write.
composed_line_count
¶
composed_line_count: int | None
The number of composed lines in the Text layer. Read-only.
composer_engine
¶
composer_engine: ComposerEngine | None
The Text layer's composer engine type. Read-only.
direction
¶
direction: ParagraphDirection = DIRECTION_LEFT_TO_RIGHT
The Text layer's paragraph direction. Read / Write.
end_indent
¶
The Text layer's paragraph end indent. Read / Write.
every_line_composer
¶
every_line_composer: bool
The Text layer's Every-Line Composer option. Read / Write.
True when Every-Line Composer is used, False for Single-Line.
faux_bold
¶
True if a Text layer has faux bold enabled. Read / Write.
faux_italic
¶
True if a Text layer has faux italic enabled. Read / Write.
first_line_indent
¶
The Text layer's paragraph first line indent. Read / Write.
font_baseline_option
¶
font_baseline_option = enum(
FontBaselineOption,
"_char_style",
"13",
map=_FONT_BASELINE_MAP,
reverse_map=_REVERSE_FONT_BASELINE_MAP,
default=None,
)
The Text layer's font baseline option. Read / Write.
font_caps_option
¶
font_caps_option = enum(
FontCapsOption,
"_char_style",
"12",
map=_FONT_CAPS_MAP,
reverse_map=_REVERSE_FONT_CAPS_MAP,
default=None,
)
The Text layer's font caps option. Read / Write.
font_size
¶
The Text layer's font size in pixels. Read / Write.
hanging_roman
¶
The Text layer's Roman Hanging Punctuation. Read / Write.
horizontal_scale
¶
This Text layer's horizontal scale in pixels. Read / Write.
justification
¶
justification = enum(
ParagraphJustification,
"_para_style",
"0",
map=_JUSTIFICATION_MAP,
reverse_map=_REVERSE_JUSTIFICATION_MAP,
default=None,
)
The paragraph justification for the Text layer. Read / Write.
leading
¶
leading: float | None
The Text layer's spacing between lines. Read / Write.
When auto-leading is enabled, returns font_size * auto_leading_factor.
leading_type
¶
leading_type = enum(
LeadingType,
"_para_style",
"8",
map=_LEADING_TYPE_MAP,
reverse_map=_REVERSE_LEADING_TYPE_MAP,
default=ROMAN_LEADING_TYPE,
)
The Text layer's paragraph leading type. Read / Write.
line_join_type
¶
line_join_type: LineJoinType = LINE_JOIN_MITER
The Text layer's line join type for strokes. Read / Write.
line_orientation
¶
line_orientation: LineOrientation = HORIZONTAL
The Text layer's line orientation. Read / Write.
paragraph_count
¶
paragraph_count: int | None
The number of paragraphs in the text layer. Read-only.
space_after
¶
The Text layer's paragraph space after. Read / Write.
space_before
¶
The Text layer's paragraph space before. Read / Write.
start_indent
¶
The Text layer's paragraph start indent. Read / Write.
stroke_color
¶
The Text layer's stroke color as [r, g, b]. Read / Write.
stroke_over_fill
¶
When True, the stroke appears over the fill. Read / Write.
stroke_width
¶
The Text layer's stroke thickness in pixels. Read / Write.
tracking
¶
The Text layer's spacing between characters. Read / Write.
tsume
¶
This Text layer's tsume value (0.0 to 1.0). Read / Write.
vertical_scale
¶
This Text layer's vertical scale in pixels. Read / Write.