tinyimg - v1.1.1
    Preparing search index...

    Class Font

    A loaded face, held open for as long as the caller needs it.

    Implements

    • Disposable
    Index
    • Releases the face, so using works on it.

      Returns void

    • Releases the face. The bytes it borrowed are the blob's and are not freed.

      Returns void

    • Whether the face has a glyph for a codepoint.

      Parameters

      • codepoint: number

      Returns boolean

    • Loads a face from a blob, or from the one the module carries.

      With no id at all this is the compiled-in sans, which covers ASCII and eight accented letters and needs no host wiring. A wider glyph set or a different face is TinyImgModule.loadBlob followed by its id here.

      Parameters

      • module: TinyImgModule

        The loaded module.

      • Optionalid: string

        The blob id, or omitted for the first resident font and then the builtin.

      Returns Font