class FormattedTextSection
Represents text and its format parameters. Supports escape sequences such as '\n' for multiline strings.
static fun formatSection(text: String, fontScale: Double?, fontStack: MutableList<String!>?, textColor: Int?): FormattedTextSection!
Creates a FormattedTextSection containing provided text, formatted according to the provided fontScale, fontStack, and textColor. |
|
fun getFontScale(): Double!
Returns the scaling factor for the size of text, relative to text size specified by the TextSettings. |
|
fun getFontStack(): MutableList<String!>!
Returns the fonts to use to display text. Overrides font settings from the TextSettings. |
|
fun getText(): String!
Returns the text to display. |
|
fun getTextColor(): Int!
Returns the text color. Overrides font settings from the TextSettings. |