markm.cd / litt.chr

BGI Stroked Font Plotter

LITT.CHR v1.1 · Jun 5, 1989

Borland International · 223 CP437 vector glyphs · Cap +7 / Base 0 / Desc −2 · Click any character to inspect strokes

Selected Glyph
Stroke Instruction Stream

All 223 Glyphs (`0x20`–`0xFE`, Code Page 437)

Click any glyph to inspect

Binary Format Anatomy (`LITT.CHR`)

0x0000–0x0058: Starts with PK\x08\x08 followed by the copyright string and 0x1A (DOS EOF). In MS-DOS, TYPE LITT.CHR prints PK, immediately erases it with the two backspaces, displays the banner, and stops cleanly at 0x1A.

0x0059–0x007F: File metadata header (header_size = 0x0080, font_name = "LITT", data_size = 0x138B = 5,003 bytes, version 1.0).

0x0080–0x008F: 16-byte Font Descriptor ('+' signature, 223 chars starting at 0x20, stroke offset +0x02AD → 0x032D, cap +7, base 0, descender -2).

0x0090–0x032C: 223 uint16 LE stroke offsets (0x0090–0x024D) followed by 223 uint8 character widths (0x024E–0x032C).

0x032D–0x140A: 2-byte vector commands. Bit 7 of each byte forms the opcode (00 = END, 10 = MOVE, 11 = LINE); bits 0–6 are signed 7-bit two's-complement coordinates. Note that glyph 0x22 (") at 0x033D is just 85 00 00 00 (MOVE(5,0), END)—an original Borland bug leaving double-quote blank!