Skip to content

Instantly share code, notes, and snippets.

@Jyczeal
Jyczeal / CGFontToFontData.m
Created Feb 23, 2012
Read Table Data from a CGFont, then wrap them into a OTF/TTF font.
View CGFontToFontData.m
typedef struct FontHeader {
int32_t fVersion;
uint16_t fNumTables;
uint16_t fSearchRange;
uint16_t fEntrySelector;
uint16_t fRangeShift;
}FontHeader;
typedef struct TableEntry {
uint32_t fTag;