@Beta(2020, 12) static fun formatSection(@NonNull text: Expression, @Nullable fontScale: Expression?, @Nullable textFont: Expression?): FormatExpressionSection!
Creates a FormatExpressionSection containing provided text, formatted according to provided fontScale and textFont.
text
- Expression: The text to display. Currently supports Literal expression with String Value.
fontScale
- Expression?: The scaling factor for the size of text, relative to text size specified by the TextSettings. Currently supports LiteralExpression with double Value.
textFont
- Expression?: The font to use to display text. Overrides font settings from the TextSettings. Currently supports Literal expression with String Value.
Return
FormatExpressionSection!: FormatExpressionSection containing provided text, formatted according to provided fontScale and textFont.