TextPath
Overview
TextPath is a class in Aspose.Words FOSS for Java.
Defines the text and formatting of the text path (of a WordArt object).
Edition status of its 60 listed members (a property and its accessor methods are listed separately, overloads once): 60 not yet exercised by a verified example.
This class declares 40 methods for TextPath objects in Java programs.
Available methods include: getBold, getFitPath, getFitShape, getFontFamily, getItalic, getKerning, getOn, getReverseRows, getRotateLetters, getSameLetterHeights, getShadow, getSize, and 28 additional methods.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: bold, fitPath, fitShape, fontFamily, italic, kerning, and 14 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
on | boolean | Read/Write | Defines whether the text is displayed. |
fitPath | boolean | Read/Write | Defines whether the text fits the path of a shape. |
fitShape | boolean | Read/Write | Defines whether the text fits bounding box of a shape. |
fontFamily | String | Read/Write | Defines the family of the textpath font. |
size | double | Read/Write | Defines the size of the font in points. |
bold | boolean | Read/Write | True if the font is formatted as bold. |
italic | boolean | Read/Write | True if the font is formatted as italic. |
smallCaps | boolean | Read/Write | True if the font is formatted as small capital letters. |
rotateLetters | boolean | Read/Write | Determines whether the letters of the text are rotated. |
trim | boolean | Read/Write | Determines whether extra space is removed above and below the text. |
kerning | boolean | Read/Write | Determines whether kerning is turned on. |
shadow | boolean | Read/Write | Defines whether a shadow is applied to the text on a text path. |
underline | boolean | Read/Write | True if the font is underlined. |
strikeThrough | boolean | Read/Write | True if the font is formatted as strikethrough text. |
sameLetterHeights | boolean | Read/Write | Determines whether all letters will be the same height regardless of initial case. |
text | String | Read/Write | Defines the text of the text path. |
textPathAlignment | int | Read/Write | Defines the alignment of text. |
reverseRows | boolean | Read/Write | Determines whether the layout order of rows is reversed. |
spacing | double | Read/Write | Defines the amount of spacing for text. |
xScale | boolean | Read/Write | Determines whether a straight textpath will be used instead of the shape path. |
Methods
| Signature | Description |
|---|---|
getOn() → boolean | Defines whether the text is displayed. |
setOn(value: boolean) | Sets the on value. |
getFitPath() → boolean | Defines whether the text fits the path of a shape. |
setFitPath(value: boolean) | Sets the fit path value. |
getFitShape() → boolean | Defines whether the text fits bounding box of a shape. |
setFitShape(value: boolean) | Sets the fit shape value. |
getFontFamily() → String | Defines the family of the textpath font. |
setFontFamily(value: String) | Sets the font family value. |
getSize() → double | Defines the size of the font in points. |
setSize(value: double) | Sets the size value. |
getBold() → boolean | True if the font is formatted as bold. |
setBold(value: boolean) | Sets the bold value. |
getItalic() → boolean | True if the font is formatted as italic. |
setItalic(value: boolean) | Sets the italic value. |
getSmallCaps() → boolean | True if the font is formatted as small capital letters. |
setSmallCaps(value: boolean) | Sets the small caps value. |
getRotateLetters() → boolean | Determines whether the letters of the text are rotated. |
setRotateLetters(value: boolean) | Sets the rotate letters value. |
getTrim() → boolean | Determines whether extra space is removed above and below the text. |
setTrim(value: boolean) | Sets the trim value. |
getKerning() → boolean | Determines whether kerning is turned on. |
setKerning(value: boolean) | Sets the kerning value. |
getShadow() → boolean | Defines whether a shadow is applied to the text on a text path. |
setShadow(value: boolean) | Sets the shadow value. |
getUnderline() → boolean | True if the font is underlined. |
setUnderline(value: boolean) | Sets the underline value. |
getStrikeThrough() → boolean | True if the font is formatted as strikethrough text. |
setStrikeThrough(value: boolean) | Sets the strike through value. |
getSameLetterHeights() → boolean | Determines whether all letters will be the same height regardless of initial case. |
setSameLetterHeights(value: boolean) | Sets the same letter heights value. |
getText() → String | Defines the text of the text path. |
setText(value: String) | Sets the text value. |
getTextPathAlignment() → int | Defines the alignment of text. |
setTextPathAlignment(value: int) | Sets the text path alignment value. |
getReverseRows() → boolean | Determines whether the layout order of rows is reversed. |
setReverseRows(value: boolean) | Sets the reverse rows value. |
getSpacing() → double | Defines the amount of spacing for text. |
setSpacing(value: double) | Sets the spacing value. |
getXScale() → boolean | Determines whether a straight textpath will be used instead of the shape path. |
setXScale(value: boolean) | Sets the x scale value. |