textFont([fontName], [fontStyle])

Returns the current font and sets it if argument fontName is given.

Type: function

Parameter(s):

  • fontName {String} Optional:

    The name of the font to set e.g. Helvetica

  • fontStyle {String} Optional:

    The font style e.g. Bold

Returns:

  • {Font}:

    The current font object