Unihex glyph

The unihex glyph stores GNU Unihex .hex data. Unihex glyphs always have a cell height of 16, and a cell width of 8, 16, 24, 32, 64, 128, or 256.

They store their data as a sequence of bits. Unihex glyphs have no color - pixels are only "on" or "off". Since unihex glyphs always have a height of 16, they do not store their sizes directly. It is calculated by a simple division of the bits.

The data is converted from hexadecimal to binary. Then, spans of bits are extracted to build the rows of the glyphs. The length of this span of bits is calculated. Each 1 bit in the row is a pixel present at that location in the glyph. Bits of 0 are empty spaces.

API

mcfonts.glyph.unihex.UnihexGlyph