Skip to main content

Interface: TextOptions

Extended by

Properties

fontColor?

optional fontColor: RgbaColor

Color of text. Default is Constants.DEFAULT_FONT_COLOR (WebColors.Black)

Source

TextOptions.ts:10


fontName?

optional fontName: string

Name of font to use for text. Must have been previously loaded

Source

TextOptions.ts:8


fontSize?

optional fontSize: number

Size of text. Default is Constants.DEFAULT_FONT_SIZE (16)

Source

TextOptions.ts:12


interpolation?

optional interpolation: StringInterpolationMap

Map of placeholders to values for use in string interpolation during localization.

Source

TextOptions.ts:14


localize?

optional localize: boolean

If true, try to use a localized version of the text. Default is true.

Source

TextOptions.ts:16


text?

optional text: string

Text to be displayed

Source

TextOptions.ts:6