Foenix A2650 OS/f Library
 
Loading...
Searching...
No Matches
Font Struct Reference

This Font object is essentially the Mac "fontRecord" struct, with added pointers for the data tables. More...

#include <font.h>

Data Fields

int16_t fontType
 Only bit we care about is the first. See https://developer.apple.com/library/archive/documentation/mac/Text/Text-251.html#MARKER-9-442.
 
int16_t firstChar
 ASCII code of first character.
 
int16_t lastChar
 ASCII code of last character.
 
int16_t widMax
 maximum character width – Could be used if font is fixed-width
 
int16_t kernMax
 negative of maximum character kern
 
int16_t nDescent
 negative of descent
 
int16_t fRectWidth
 width of font rectangle
 
int16_t fRectHeight
 height of font rectangle
 
uint16_t owTLoc
 offset to offset/width table
 
int16_t ascent
 ascent
 
int16_t descent
 descent
 
int16_t leading
 leading
 
int16_t rowWords
 row width of bit image / 2
 
uint16_t * image_table_
 The font image data.
 
uint16_t * loc_table_
 The location table.
 
uint16_t * width_table_
 Table containing h offset and widths for each glyph.
 
uint16_t * height_table_
 Table containing starting v offset and active v pixel count for each glyph.
 

Detailed Description

This Font object is essentially the Mac "fontRecord" struct, with added pointers for the data tables.

It is designed to allow a Mac 'FONT' resource to be loaded into memory to populate this struct.


The documentation for this struct was generated from the following file: