Data File: UniFont[n].mul
This file begins with a lookup table:
Lookup Table:
int[0x10000] lookupTable;
You can then find the data by seeking to lookupTable[charID]
Data:
byte xOffset;
byte yOffset;
byte xWidth;
byte yHeight;
Scanline Data...Scanlines are padded on a byte-boundary; for each scanline, you will have ((xWidth - 1) / 8) + 1 bytes of data:
Bits are loaded high to low; bit 7 (mask: 0x80) would be the first pixel.
If the bit value is 0, color is transparent, else, color is forecolor.
See Also:
- SJIS To UniFont Table