Skip to main content

Module unscii16

Module unscii16 

Source
Expand description

The Unscii 16 font, embedded when the default-font feature is enabled.

256 glyphs laid out in CP437 order (matching unicode_to_cp437), each 16 bytes (1 bit per pixel, MSB = leftmost). Source: unscii’s public-domain/CC0 unscii-16.hex (https://github.com/viznut/unscii), re-laid-out from Unicode codepoints to CP437 glyph indices.

Four CP437 codepoints that plain unscii-16.hex doesn’t cover (U+2302 HOUSE, U+263C WHITE SUN WITH RAYS, U+2310 REVERSED NOT SIGN, U+2219 BULLET OPERATOR) are filled in with original pixel art or mechanical transforms of neighboring unscii glyphs (e.g. REVERSED NOT SIGN is a horizontal mirror of unscii’s own NOT SIGN) rather than pulling in unscii’s GPL-licensed -full variant (which adds GNU Unifont glyphs). unicode_to_cp437 carries matching reverse-mapping arms for all four ( already had one; the // arms are new here) so all four are reachable through the normal char-to-glyph path, not just by raw glyph index.

Constants§

FONT
A BitmapFont backed by the embedded Unscii 16 glyph data.