Documentation
    Preparing search index...

    Function glyphToAscii

    • Renders a glyph back to ./# art — one line per encoded row, top first.

      The inverse of the source table's encoding, and the only readable view of it. Tests assert letterforms against literal art through this function, so the art in text.test.ts is the reviewable copy of the font (see the module header). Diagnostics-grade, not a hot path.

      glyphToAscii(BUILTIN_FONT, glyphFor(BUILTIN_FONT, "T"));
      // "#####\n..#..\n..#..\n..#..\n..#..\n..#..\n..#..\n.....\n....."

      Parameters

      Returns string