open class Builder
Creates an instance of TextSettings.
Builder()
Creates an instance of TextSettings. |
open fun build(formattedText: FormattedText!): TextSettings!
Creates an instance of TextSettings with parameters set through withXXX methods. |
|
open fun withColor(color: Expression!): TextSettings.Builder!
Sets the color of the text. |
|
open fun withFont(font: Expression!): TextSettings.Builder!
Sets the font to use for all text sections. This setting might be overridden by individual FormatExpressionSection's parameters. |
|
open fun withLetterCaseTransform(letterCaseTransform: Expression!): TextSettings.Builder!
If an how letter case should be altered. |
|
open fun withLetterSpacing(letterSpacing: Expression!): TextSettings.Builder!
Sets the spacing between letters, in ems. |
|
open fun withMaxWidth(maxWidth: Expression!): TextSettings.Builder!
Sets the maximum width of the text, in ems. Line breaking is done between words. |
|
open fun withOffset(offset: Expression!): TextSettings.Builder!
Sets the text offset in relation to the parent entity, in ems. |
|
open fun withRotationAngle(rotationAngle: Expression!): TextSettings.Builder!
Sets the rotation angle of the text, in degrees. |
|
open fun withSize(size: Expression!): TextSettings.Builder!
Sets the base text size to use for all text sections, in pixels. Individual FormatExpressionSections can use the scale parameter to scale the size of the text relative to this setting. |
|
open fun withSymbolAnchor(symbolAnchor: Expression!): TextSettings.Builder!
Anchor determines which part of the text should be aligned with the parent entity. |
|
open fun withTextAlignment(textAlignment: Expression!): TextSettings.Builder!
Sets the text alignment. |