Font.setFont

Set the font and style for the widget.

  1. auto setFont(string font, int size, FontStyle[] styles)
    mixintemplate Font()
    setFont
    (
    this T
    )
    (
    string font
    ,
    int size
    ,)
  2. auto setFont(string fontInfo)

Parameters

font string

The name of the font like 'Arial' or 'arial'.

size int

The size of the font like '12'.

styles FontStyle[]

The different font styles.

Return Value

Type: auto

This widget to aid method chaining.

Examples

widget.setFont("PragmataPro", 10, FontStyle.bold, FontStyle.italic);

See Also

tkd.element.fontstyle for font styles.

Meta