[fonttools/fonttools] ce2755: [varLib] Support beyond-64k companion tables in in...

1 view
Skip to first unread message

Cosimo Lupo

unread,
Jun 18, 2026, 7:59:32 AM (7 days ago) Jun 18
to fontto...@googlegroups.com
Branch: refs/heads/varlib-instancer-beyond64k
Home: https://github.com/fonttools/fonttools
Commit: ce2755fc705ccb38de737e73bc6acca1112705c3
https://github.com/fonttools/fonttools/commit/ce2755fc705ccb38de737e73bc6acca1112705c3
Author: Cosimo Lupo <cos...@anthrotype.com>
Date: 2026-06-18 (Thu, 18 Jun 2026)

Changed paths:
M Lib/fontTools/varLib/instancer/__init__.py
M Tests/varLib/instancer/instancer_test.py

Log Message:
-----------
[varLib] Support beyond-64k companion tables in instancer

The instancer addressed variation/metric tables by their lowercase tags (gvar, glyf, hmtx, hhea), so on a beyond-64k font that uses the uppercase companion tables nothing matched: GVAR was never instanced or dropped, and saving a full instance then raised KeyError('fvar') from gvar's compile reaching the deleted fvar. Resolve each tag to whichever spelling is present.

Also keep the GDEF at v1.4 when instancing fully consumes the VarStore: NULL the VarStore (it stays part of the v1.4 layout) instead of downgrading the table and dropping its extended *2 fields like GlyphClassDef2.



To unsubscribe from these emails, change your notification settings at https://github.com/fonttools/fonttools/settings/notifications
Reply all
Reply to author
Forward
0 new messages