Repository navigation
builder: apply a font's own TrueType hinting from a hinting file - #1248
felipesanches wants to merge 2 commits into
Conversation
A source format cannot carry a compiled font's TrueType hinting: glyph programs address points by index, and hdmx, LTSH and VDMX have no source form. `hintingFiles` maps a static TTF to a text file holding its fpgm, prep, cvt, gasp, maxp limits, device metrics, glyph programs (with ufo2ft's point hashes) and component flags; the new applyHinting step applies it after compiling, in place of autohinting, and refuses glyphs whose points differ. gftools-extract-hinting writes the file from a hinted font. Assisted by an AI agent (Claude Opus 5.5)
… head flags 2 and 4 Assisted by an AI agent (Claude Opus 5.5)
|
This is all very clever but wouldn't an easier and more general-purpose approach just be to have an operation which calls |
That works for whole tables (fpgm, prep, cvt, gasp, MATH), but This PR puts each glyph's program on the built glyph, refusing it when the points differ, after restoring the points the toolchain changes (start points, the midpoint on-curves fontc drops, F2Dot14 transforms, stale boxes). |
Related to simoncozens/babelfont-rs#139