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

NameTypeAccessDescription
onbooleanRead/WriteDefines whether the text is displayed.
fitPathbooleanRead/WriteDefines whether the text fits the path of a shape.
fitShapebooleanRead/WriteDefines whether the text fits bounding box of a shape.
fontFamilyStringRead/WriteDefines the family of the textpath font.
sizedoubleRead/WriteDefines the size of the font in points.
boldbooleanRead/WriteTrue if the font is formatted as bold.
italicbooleanRead/WriteTrue if the font is formatted as italic.
smallCapsbooleanRead/WriteTrue if the font is formatted as small capital letters.
rotateLettersbooleanRead/WriteDetermines whether the letters of the text are rotated.
trimbooleanRead/WriteDetermines whether extra space is removed above and below the text.
kerningbooleanRead/WriteDetermines whether kerning is turned on.
shadowbooleanRead/WriteDefines whether a shadow is applied to the text on a text path.
underlinebooleanRead/WriteTrue if the font is underlined.
strikeThroughbooleanRead/WriteTrue if the font is formatted as strikethrough text.
sameLetterHeightsbooleanRead/WriteDetermines whether all letters will be the same height regardless of initial case.
textStringRead/WriteDefines the text of the text path.
textPathAlignmentintRead/WriteDefines the alignment of text.
reverseRowsbooleanRead/WriteDetermines whether the layout order of rows is reversed.
spacingdoubleRead/WriteDefines the amount of spacing for text.
xScalebooleanRead/WriteDetermines whether a straight textpath will be used instead of the shape path.

Methods

SignatureDescription
getOn() → booleanDefines whether the text is displayed.
setOn(value: boolean)Sets the on value.
getFitPath() → booleanDefines whether the text fits the path of a shape.
setFitPath(value: boolean)Sets the fit path value.
getFitShape() → booleanDefines whether the text fits bounding box of a shape.
setFitShape(value: boolean)Sets the fit shape value.
getFontFamily() → StringDefines the family of the textpath font.
setFontFamily(value: String)Sets the font family value.
getSize() → doubleDefines the size of the font in points.
setSize(value: double)Sets the size value.
getBold() → booleanTrue if the font is formatted as bold.
setBold(value: boolean)Sets the bold value.
getItalic() → booleanTrue if the font is formatted as italic.
setItalic(value: boolean)Sets the italic value.
getSmallCaps() → booleanTrue if the font is formatted as small capital letters.
setSmallCaps(value: boolean)Sets the small caps value.
getRotateLetters() → booleanDetermines whether the letters of the text are rotated.
setRotateLetters(value: boolean)Sets the rotate letters value.
getTrim() → booleanDetermines whether extra space is removed above and below the text.
setTrim(value: boolean)Sets the trim value.
getKerning() → booleanDetermines whether kerning is turned on.
setKerning(value: boolean)Sets the kerning value.
getShadow() → booleanDefines whether a shadow is applied to the text on a text path.
setShadow(value: boolean)Sets the shadow value.
getUnderline() → booleanTrue if the font is underlined.
setUnderline(value: boolean)Sets the underline value.
getStrikeThrough() → booleanTrue if the font is formatted as strikethrough text.
setStrikeThrough(value: boolean)Sets the strike through value.
getSameLetterHeights() → booleanDetermines whether all letters will be the same height regardless of initial case.
setSameLetterHeights(value: boolean)Sets the same letter heights value.
getText() → StringDefines the text of the text path.
setText(value: String)Sets the text value.
getTextPathAlignment() → intDefines the alignment of text.
setTextPathAlignment(value: int)Sets the text path alignment value.
getReverseRows() → booleanDetermines whether the layout order of rows is reversed.
setReverseRows(value: boolean)Sets the reverse rows value.
getSpacing() → doubleDefines the amount of spacing for text.
setSpacing(value: double)Sets the spacing value.
getXScale() → booleanDetermines whether a straight textpath will be used instead of the shape path.
setXScale(value: boolean)Sets the x scale value.

See Also