[fonttools/fonttools] d19636: [instancer] Fix VARC axis remapping and preserve i...

1 view
Skip to first unread message

Behdad Esfahbod

unread,
Sep 17, 2026, 3:26:09 PM (2 days ago) Sep 17
to fontto...@googlegroups.com
Branch: refs/heads/main
Home: https://github.com/fonttools/fonttools
Commit: d1963634e5b3a930fc448e5559ad4e2555436c91
https://github.com/fonttools/fonttools/commit/d1963634e5b3a930fc448e5559ad4e2555436c91
Author: Behdad Esfahbod <beh...@behdad.org>
Date: 2026-09-17 (Thu, 17 Sep 2026)

Changed paths:
M Doc/source/varLib/instancer.rst
M Lib/fontTools/varLib/instancer/__init__.py
A Tests/varLib/instancer/varc_test.py

Log Message:
-----------
[instancer] Fix VARC axis remapping and preserve internal variations (#4190)

* [instancer] Fix VARC axis remapping and preserve internal variations

Remap axis references in nested VARC conditions when unrelated axes are
removed, and reject pinning or restricting referenced axes consistently
through the avar2 partial-instancing path.

Skip font-level avar2 variation culling for VARC fonts because component
coordinate overrides can reach beyond those ranges. Add matching
HarfBuzz regression scenarios covering outline preservation, nested
conditions, hidden component axes, and unsupported instancing requests.

Validate negated-condition remapping through serialized axis references
so these tests do not depend on the separate condition-drawing fix.

Validation: 357 instancer and ttGlyphSet tests passed; three overlap
tests skipped because pathops is unavailable. Black checks passed.

Assisted-by: Codex

* [instancer] Test VARC avar2 internal variation culling

---------

Co-authored-by: Cosimo Lupo <cos...@anthrotype.com>



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