[fonttools/fonttools] 75ecc0: [varLib.instancer] Preserve layout ppem device cor...

0 views
Skip to first unread message

Behdad Esfahbod

unread,
Oct 12, 2026, 6:55:31 PM (3 days ago) Oct 12
to fontto...@googlegroups.com
Branch: refs/heads/instancer-layout-hint-devices
Home: https://github.com/fonttools/fonttools
Commit: 75ecc00602156118d1b2164e7c5a0dbad98a12a4
https://github.com/fonttools/fonttools/commit/75ecc00602156118d1b2164e7c5a0dbad98a12a4
Author: Behdad Esfahbod <beh...@behdad.org>
Date: 2026-10-12 (Mon, 12 Oct 2026)

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

Log Message:
-----------
[varLib.instancer] Preserve layout ppem device corrections

MutatorMerger asserted that every GDEF, BASE, and GPOS device was a
VariationIndex. Ordinary ppem devices in valid variable fonts therefore
failed instancing, including mixed ppem and variation anchors.

Fold only VariationIndex devices and preserve ordinary hint corrections.
Keep Anchor format 3 when either axis still has a ppem device, while
removing resolved variation references on the other axis.

All 36 regression cases fail before the fix. Validated with 612 related
tests; 11 optional tests skipped.

Assisted-by: Codex



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