00001 #ifndef FONTFILE_H 00002 #define FONTFILE_H 00003 00004 // magic value for font-files (FNT2) 00005 // 00006 #define FONT_MAGIC 0x32544e46 00007 00016 typedef struct Font { 00017 short firstChar; // +0 ascii offset for first char 00018 short numChars; // +2 number of characters in font 00019 short maxWidth; // +4 maximum character width 00020 short height; // +6 height of font characters 00021 00022 short pageSize; // +8 size of a font page 00023 short numPages; // +10 number of font pages 00024 00025 unsigned short offsets[]; // +12 00026 } Font; 00027 00028 #endif