Font formats
BDF glyph bitmap rows
Convert a #/. pixel grid into byte-padded BDF bitmap rows.
Your inputs
Start with an exampleYour result
Example resultAa — A small example of your colors.
How it works
Pack each row from its leftmost, most significant bit. Pad unused bits on the right with zeros and include the BBX dimensions.
The 3-pixel rows .#., ### and #.# become 40, E0 and A0 hex.
Limits
Up to 64×64 monochrome pixels. Output is a BBX/BITMAP fragment; font properties, encoding and advance metrics are not invented.