Optionaloptions: OptionsCreate a TextObjectUtils instance with the specified options.
can merge text
The graphic object utilities to use.
A promise that resolves to a boolean indicating whether text can be merged.
can split text
The graphic object utilities to use.
A promise that resolves to a boolean indicating whether the text can be split.
can text to path
The graphic object utilities to use.
A promise that resolves to a boolean indicating whether the text can be converted to a path.
get char space
The graphic object utilities to use.
The char space.
get fill info
The graphic object utilities to use.
The fill info.
get font
The graphic object utilities to use.
Whether to get the full name of the font.
A promise that resolves to the name of the font.
get font size
The graphic object utilities to use.
The font size.
get horizontal scale
The graphic object utilities to use.
The horizontal scale.
get line width
The graphic object utilities to use.
The line width.
get stroke info
The graphic object utilities to use.
The stroke info.
get text color info
The graphic object utilities to use.
The text color info.
get text mode
The graphic object utilities to use.
A promise that resolves to the text mode.
get word space
The graphic object utilities to use.
The word space.
get font bold info
The graphic object utilities to use.
A promise that resolves to a boolean indicating whether the font is bold.
get font italic
The graphic object utilities to use.
A promise that resolves to a boolean indicating whether the font is italic.
is word space valid
The graphic object utilities to use.
A promise that resolves to a valid flag indicating whether the word space is valid.
merge text
The graphic object utilities to use.
A promise that resolves to a boolean indicating whether text was merged successfully.
set char space
The char space to set.
A promise that resolves to a boolean indicating whether the char space was successfully set.
set fill info
The graphic object utilities to use.
Whether to enable fill.
The fill color.
Whether to add an undo step.
A promise that resolves when the fill info is set.
set font
A promise that resolves to a boolean indicating whether the font was successfully set.
set font size
The font size to set.
A promise that resolves to a boolean indicating whether the font size was successfully set.
set horizontal scale
The horizontal scale to set.
A promise that resolves to a boolean indicating whether the horizontal scale was successfully set.
set line width
The graphic object utilities to use.
The line width to set.
A promise that resolves to a boolean indicating whether the line width was successfully set.
set stroke info
The graphic object utilities to use.
Whether to enable stroke.
The stroke color.
Whether to add an undo step.
A promise that resolves when the stroke info is set.
set text mode
The graphic object utilities to use.
The text mode to set.
A promise that resolves to a boolean indicating whether the text mode was successfully set.
set word space
The word space to set.
A promise that resolves to a boolean indicating whether the word space was successfully set.
StaticcreateCreates a TextObjectUtils instance.
Optionaloptions: OptionsThe configuration options required for creation, containing necessary initialization information.
A promise that resolves to a TextObjectUtils instance.
Create a TextObjectUtils instance. Instead of creating an instance in new mode, use create to create an instance.