Function generateFont

  • Generate an image that contains the glyphs from a font. It's considerably quicker to render images than glyphs.

    Parameters

    • size: number

      The size in pixels of the font to render

    • col: string

      The color of the text to render

    • Optional charset: string

      The list of characters to render

    Returns GameFont

    A newly generate font that contains the character specified

Generated using TypeDoc