Skip to main content

Interface: TextOptions

Extended by

Properties

fontColor?

optional fontColor: RgbaColor

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

Defined in

TextOptions.ts:10


fontName?

optional fontName: string

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

Defined in

TextOptions.ts:8


fontSize?

optional fontSize: number

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

Defined in

TextOptions.ts:12


interpolation?

optional interpolation: StringInterpolationMap

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

Defined in

TextOptions.ts:14


localize?

optional localize: boolean

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

Defined in

TextOptions.ts:16


text?

optional text: string

Text to be displayed

Defined in

TextOptions.ts:6