Unit Information Global Constants Types MFFFont

Normal Types

charOFFSETS=array[1..255]of longint
the array of all char offsets in the file of the selected style
PBYTE=^BYTE
pointer to a byte
P_SPECIFIC_STYLE_INFO=^MFF_SPECIFIC_STYLE_INFO
pointer to a specific style info
P_GENERAL_STYLE_INFO=^MFF_GENERAL_STYLE_INFO
pointer to the general style info

Record Types

MFF_File_Header=packed record ID :WORD; Version :WORD; FontName:string[22]; Styles :BYTE; CRC :LONGINT; end; - the header record of a mathan font file
field namefield typedescription
ID WORD the mathan font file id-word (=$B673)
Version WORD the version of the mathan font file (=$0500)
FontNamestring[22] the name of the font stored in the file
Styles BYTE the number of different styles stored in the file
CRC LONGINT the checksum of the entire file
MFF_Style_Header=packed record Size :BYTE; Special :BYTE; Chars :BYTE; Next :LONGINT; Version :BYTE; CRC :LONGINT; end; - the header record of a style
field namefield typedescription
Size BYTE pixel size of font
Special BYTE special sytle (fntITALIC,fntBOLD)
Chars BYTE number of chars in this style
Next LONGINT offset (from begin of file) to the next style
Version BYTE version of data storing
CRC LONGINT the style checksum
MFF_Char_Header=packed record C :CHAR; W :BYTE; V :BYTE; V2 :BYTE; R :BYTE; end; - the header of each char entry
field namefield typedescription
C CHAR the char represented by the data
W BYTE the width of the char
V BYTE the ascent height
V2 BYTE the descent height
R BYTE if non-zero data is represented by the data of this char
MFF_CHAR_DATA_type=record WIDTH:byte; Y1:integer; Y2:integer; REPRESENTED_BY:byte; DATA:PBYTE; end; - the memory mapped char entry
field namefield typedescription
WIDTHbyte the width of the char
Y1integer the top position
Y2integer the bottom position
REPRESENTED_BYbyte the char which data is also this data
DATAPBYTE pointer to the data
MFF_SPECIFIC_STYLE_INFO=record SPEED:boolean; CHARS:array[1..255]of MFF_CHAR_DATA_type; end; - the specifiy style info
field namefield typedescription
SPEEDboolean true if data is stored for fast access, false if data is stored with minimum memory usage
CHARSarray[1..255]of MFF_CHAR_DATA_type all char entries
MFF_GENERAL_STYLE_INFO=record Name:string; Size:byte; Special:byte; Fileofs:longint; Filename:string; CHARS:byte; DATA:P_SPECIFIC_STYLE_INFO; end; - the general style info
field namefield typedescription
Namestring the name of the font
Sizebyte the size of the font
Specialbyte the special style flags
Fileofslongint the offset in the font file
Filenamestring the name of the font file
CHARSbyte the number of chars in this style
DATAP_SPECIFIC_STYLE_INFO pointer to the specific style info
MFF_ALL_STYLES_INFO=record CURRENT:P_GENERAL_STYLE_INFO; STYLE:array[1..64]of P_GENERAL_STYLE_INFO; Styles:word; end; - main styles info
field namefield typedescription
CURRENTP_GENERAL_STYLE_INFO the pointer to the current selected style (general style info)
STYLEarray[1..64]of P_GENERAL_STYLE_INFO 64 pointers to genera style infos
Stylesword the number of styles

(c) 2001 Mathan Software created by PasDoc