SCREENFONTHEADER STRUC
sfhHeight db ? ;character height
sfhWidth db ? ;character width
sfhRelHeight db ? ;must be zero
sfhRelWidth db ? ;must be zero
sfhCharacters dw ? ;number of characters defined in bitmap
SCREENFONTHEADER ENDS
The SCREENFONTHEADER structure specifies the raster dimensions of each character in the font and the number of characters in the font. This structure is followed by a raster bitmap for each character.
sfhHeight
Specifies the number of rows, in pixels, that this character occupies on the screen.
sfhWidth
Specifies the number of columns, in pixels, that this character occupies on the screen.
sfhRelHeight
Specifies the relative height, a part of the aspect ratio. This field is currently unused and must be zero.
sfhRelWidth
Specifies the relative width, a part of the aspect ratio. This field is currently unused and must be zero.
sfhCharacters
Specifies the number of characters defined in the bitmaps immediately following this structure. Normally, the entire ASCII character set is defined, so this value is usually 256.
The bitmap data following the structure consists of one bitmap for each character in the font. Each character bitmap is a packed array of bits organized by row and column, starting at the upper left corner of the character's image. Since all current screen fonts are 8 bits wide, the number of bytes needed to encode this packed array is equal to the square area of a character in the font divided by 8.
The total length of the screen-font description is 6 bytes plus the product of the number of characters in the descriptions and the number of bytes needed to encode a character bitmap.