Skip to main content

UI.FontDescription

Object containing font parameters. If no color, size and shadow are specified, default values are ignored and white font with text size 20, white color and 0.45 shadow is created.

Index

Properties

optionalalign

align?: number

Same as alignment.

optionalalignment

alignment?: number

Font alignment, one of the UI.Font.ALIGN_DEFAULT, UI.Font.ALIGN_CENTER, UI.Font.ALIGN_END constants.

optionalbold

bold?: boolean = false

If true, the font is bold, false otherwise.

optionalcolor

Font color, android integer color value (produced by android.graphics.Color).

optionalcursive

cursive?: boolean = false

If true, the font is italic, false otherwise.

optionalshadow

shadow?: number = 0 // no shadow

Font shadow offset.

optionalsize

size?: number = 20

Font size.

optionalunderline

underline?: boolean = false

If true, the font is underlined, false otherwise.