sdk-maps / com.tomtom.online.sdk.map.style.expression / FormattedTextSection

FormattedTextSection

class FormattedTextSection

Represents text and its format parameters. Supports escape sequences such as '\n' for multiline strings.

Functions

formatSection

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.

getFontScale

fun getFontScale(): Double!

Returns the scaling factor for the size of text, relative to text size specified by the TextSettings.

getFontStack

fun getFontStack(): MutableList<String!>!

Returns the fonts to use to display text. Overrides font settings from the TextSettings.

getText

fun getText(): String!

Returns the text to display.

getTextColor

fun getTextColor(): Int!

Returns the text color. Overrides font settings from the TextSettings.