Implement OTF/TTF font file parsing in text crate
Parse the OpenType/TrueType table directory and essential font tables:
- head: font header (units per em, bounding box, loca index format)
- maxp: maximum profile (number of glyphs)
- hhea: horizontal header (ascent, descent, line gap, metrics count)
- hmtx: horizontal metrics (advance width + left side bearing per glyph)
- cmap: character to glyph mapping (format 4 for BMP, format 12 for full Unicode)
- name: naming table (family name, subfamily, full name with UTF-16BE and Mac Roman decoding)
- loca: glyph location index (short and long offset formats)
Includes a binary reader utility for big-endian parsing and a
system font loader for macOS. All parsers are tested against real
system fonts (Geneva/Monaco).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>