Data File: UniFont[n].mul
This file begins with a lookup table:
Lookup Table:
Dim lookupTable(0 To &H10000 - 1) As Long
You can then find the data by seeking to lookupTable[charID]
Data:
Dim xOffset As Byte
Dim yOffset As Byte
Dim xWidth As Byte
Dim yHeight As Byte
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