Skip to content

Instantly share code, notes, and snippets.

@lantins
Last active March 11, 2016 14:49
Show Gist options
  • Save lantins/5bf12fcbf34a17a15b76 to your computer and use it in GitHub Desktop.
Save lantins/5bf12fcbf34a17a15b76 to your computer and use it in GitHub Desktop.
AMP font format

[16 byte header][128 * 256 byte glyphs]

  • 16 byte header:
    • ? bytes 0-1: number of nibbles (pixels) per line?
    • ? bytes 2-3: width of glyph?
    • ? bytes 4-5: hight of glyph?
    • ? bytes 6-7: number of glyphs
    • ? bytes 8-15: no idea
  • Each glyph is represented using 256 bytes:
    • 16 pixels wide, each pixel stored in a nibble, 8 bytes total.
    • 32 lines high
  • Viewing the 256 bytes as a column of 8 bytes lets you visualise the glyph. In hex, each nibble of pixel data should be interpreted as:
    • F = background (actually think this can be anything, other then 1 or 2)
    • 1 = foreground
    • 2 = border
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment