Interface 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.

interface FontDescription {
    align?: number;
    alignment?: number;
    bold?: boolean;
    color?: number;
    cursive?: boolean;
    shadow?: number;
    size?: number;
    underline?: boolean;
}

Properties

align?: number

Same as alignment.

alignment?: number

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

bold?: boolean

If true, the font is bold, false otherwise.

false
color?: number

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

0x000 // black
cursive?: boolean

If true, the font is italic, false otherwise.

false
shadow?: number

Font shadow offset.

0 // no shadow
size?: number

Font size.

20
underline?: boolean

If true, the font is underlined, false otherwise.

false

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.