next up previous contents
Next: Language files (cliloc) Up: UO File Format Previous: tiledata.mul   Contents

unifont.mul

unifont.mul, unifont1.mul, and unifont2.mul are all the unicode fonts. The file is set up with an index in the beginning with offsets into the rest of the file. To look up a specific unicode character, multiply the character by 4, and seek to that offset in the file. Then read in 1 dword, which is the offset of the character data. The character data is a bitstream. One bit corresponds to one pixel. The character data is also padded to the nearest byte. So if a character is 10 bits wide, it'll take up 2 bytes per line. Here's the character data format:

byte Kerning
byte Baseline
byte Width
byte Height
byte[*] Pixel bits


Thiago A Correa 2001-06-09