Link to this headingFonts
Link to this headingTrue Type Fonts (TTF)
Better for screens
Apples Reference Manual for TTF
Parse TTF:
# Read the offset table
=
, , , =
# Each table record is 16 bytes long
# Read 16 bytes: tag (4), checksum (4), offset (4), length (4)
=
, , , =
=
DSIG | Digital Signature Table
GSUB | Glyph Substitution Table
OS/2 | OS/2 and Windows Metrics Table
TTFA | ttfautohint paramater table
cmap | Character to Glyph Index Mapping Table
cvt | Control Value Table
fpgm | Font Program
gasp | Grid-fitting and Scan-conversion Procedure Table
glyf | Glyph Data
head | Font Header Table
hhea | Horizontal Header Table
hmtx | Horizontal Metrics Table
loca | Index to Location
maxp | Maximum Profile
name | Naming Table
post | PostScript Table
prep | Control Value Program
Link to this headingOpenType Fonts (OTF)
Better for printing and supports Advanced (ligatures, glyphs, alternates)
Link to this headingWeb Open Font Format (WOFF & WOFF2)
Used for Websites