[fonttools/fonttools] a6f7a9: [featureVars] Sort FeatureTableSubstitution record...

1 view
Skip to first unread message

Cosimo Lupo

unread,
Oct 6, 2026, 10:55:55 AM (4 days ago) Oct 6
to fontto...@googlegroups.com
Branch: refs/heads/featurevars-sort-substitution-records
Home: https://github.com/fonttools/fonttools
Commit: a6f7a919806d6e416a41d5fbb8ca1c71290e01b9
https://github.com/fonttools/fonttools/commit/a6f7a919806d6e416a41d5fbb8ca1c71290e01b9
Author: Cosimo Lupo <cos...@anthrotype.com>
Date: 2026-10-06 (Tue, 06 Oct 2026)

Changed paths:
M Lib/fontTools/varLib/featureVars.py

Log Message:
-----------
[featureVars] Sort FeatureTableSubstitution records after merging into an existing record

When addFeatureVariationsRaw reuses a FeatureVariationRecord with the same
condition set, it appended the new substitution records without re-sorting, so
feaLib `variation` blocks sharing a conditionset came out in source order (and
addFeatureVariations could too, after inserting a new feature tag). The spec
requires increasing FeatureIndex order.



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