@kayahr/wastelib
    Preparing search index...

    Class Font

    Container for the font characters of the COLORF.FNT file.

    Implements

    Index

    Methods

    • Returns the font character image with the given index.

      Parameters

      • index: number

        The index of the font character.

      Returns FontChar

      The font character image.

      RangeError if the index is out of bounds.

    • Returns number

      The number of characters.

    • Parses a font from the given array and returns it.

      Parameters

      • array: Uint8Array

        The array with the colorf.fnt file content to parse.

      Returns Font

      The parsed font.