API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceTextStyle

@codexo/exojs-tilemap / tilemap / stable

Text styling options carried by a TextObject.

11
props
0
methods
0
events
Import
import { TextStyle } from '@codexo/exojs-tilemap'

Text styling options carried by a TextObject.

Properties11
bold?: boolean
Bold text.
color?: null | number
Text colour as 0xRRGGBB, or null if default.
fontFamily?: string
Font family name.
halign?: "center" | "justify" | "left" | "right"
Horizontal alignment.
italic?: boolean
Italic text.
pixelSize?: number
Font size in pixels.
strikeout?: boolean
Strikeout text.
text: string
The text content.
underline?: boolean
Underline text.
valign?: "bottom" | "center" | "top"
Vertical alignment.
wrap?: boolean
Wrap text within the object bounds.
Source