[fonttools/fonttools] 90b9a6: [ttLib] Fix drawing VARC components with negated c...

1 view
Skip to first unread message

Behdad Esfahbod

unread,
Sep 16, 2026, 3:27:47 PM (3 days ago) Sep 16
to fontto...@googlegroups.com
Branch: refs/heads/main
Home: https://github.com/fonttools/fonttools
Commit: 90b9a6c957a10134bef532520fb8377db2bb1cba
https://github.com/fonttools/fonttools/commit/90b9a6c957a10134bef532520fb8377db2bb1cba
Author: Behdad Esfahbod <beh...@behdad.org>
Date: 2026-09-16 (Wed, 16 Sep 2026)

Changed paths:
M Lib/fontTools/ttLib/ttGlyphSet.py
M Tests/ttLib/ttGlyphSet_test.py

Log Message:
-----------
[ttLib] Fix drawing VARC components with negated conditions (#4191)

Condition format 5 stores its nested condition as ConditionTable.
Reading conditionTable instead raises AttributeError when drawing a
VARC component guarded by negation.

Use the correct attribute and add serialized-font drawing regressions
for true and false conditions with single and double negation.

Validation: all 20 ttGlyphSet tests pass. The four new regression cases
fail with AttributeError before the fix. Black checks passed.

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