Function createFont

  • Create a font from a tile set

    Parameters

    • tiles: TileSet

      The tiles for each glyph

    • lineHeight: number

      The height to use when rendering lines of text

    • widths: FontCharacterWidths

      The widths of the characters

    • chars: string

      The characters included in the font

    • baseline: number

      The distance from the top of the tile to the base line for positioning

    Returns GameFont

    The newly created font

Generated using TypeDoc