Appendix B. Font File Format

128 bytes -- File Header data;

          0-Font Version (usually 1)

          1-Font Revision (0)

          2-Font Width Unkerned

          3-Font Height in lines

          4-Byte Width per character map

          5-Scan Direction (Left to Right = 1)

          6-Font Type; 1=bitmap pixels 2=color indexes

          7-Amount of added Leading

          8-Table Entry Size in bytes (2 or 4)

          9-Font Bytes per Scanline.

          (10-127) Reserved. Zeroes

512/1024 -- Font Character Index Table.

          257 Entries, offsets from start of file to Character Data

N to N+X -- Character Data

          byte N -- Character Kerned Width in pixels

          byte(s) N+1 to N+X -- Bitmap Data.

Note that font files allow for 257 characters to be contained in the table, while only 256 characters are allowed in the ASCII table. This is because character #257 is used for blanking.

Return to Contents.   Next Chapter.   Previous Chapter.