[fonttools/fonttools] 769425: [feaLib] Raise clear error for duplicate normalize...

0 views
Skip to first unread message

Cosimo Lupo

unread,
Mar 5, 2026, 7:24:46 AM (6 days ago) Mar 5
to fontto...@googlegroups.com
Branch: refs/heads/varsca-interpolation
Home: https://github.com/fonttools/fonttools
Commit: 76942525acbc87a23d5a05948574ad03350e9365
https://github.com/fonttools/fonttools/commit/76942525acbc87a23d5a05948574ad03350e9365
Author: Cosimo Lupo <cl...@google.com>
Date: 2026-03-05 (Thu, 05 Mar 2026)

Changed paths:
M Lib/fontTools/feaLib/variableScalar.py
M Tests/feaLib/builder_test.py

Log Message:
-----------
[feaLib] Raise clear error for duplicate normalized locations in VariableScalar

When two user-locations normalise to the same location (e.g. one omitting
an axis that defaults to 0, another specifying it explicitly), raise a
VariationModelError instead of hitting an AssertionError from mismatched
location/value counts in VariationModel.getDeltasAndSupports().

The error flows through makeVariablePos's existing VarLibError handler,
producing a FeatureLibError with a helpful message.



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