[fonttools/fonttools] f4896f: [feaLib] raise FeatureLibError for a STAT axis loc...

0 views
Skip to first unread message

Cosimo Lupo

unread,
Oct 9, 2026, 11:00:15 AM (3 days ago) Oct 9
to fontto...@googlegroups.com
Branch: refs/heads/main
Home: https://github.com/fonttools/fonttools
Commit: f4896fc212ab607ce34c7673c5318e9bfdfbaa47
https://github.com/fonttools/fonttools/commit/f4896fc212ab607ce34c7673c5318e9bfdfbaa47
Author: RavSinghChandan <ravcha...@gmail.com>
Date: 2026-10-09 (Fri, 09 Oct 2026)

Changed paths:
M Lib/fontTools/feaLib/parser.py
M Tests/feaLib/parser_test.py

Log Message:
-----------
[feaLib] raise FeatureLibError for a STAT axis location with no or too many values

A location takes 1, 2 or 3 values (Axis Value formats 1, 3 and 2). With 0 or
4+ the parser accepted it, the builder skipped the record, and the build then
failed in otlLib with a bare KeyError: 'name'.


Commit: 97dace246f110507e9e6a9445860d61838f4e9e9
https://github.com/fonttools/fonttools/commit/97dace246f110507e9e6a9445860d61838f4e9e9
Author: Cosimo Lupo <cos...@anthrotype.com>
Date: 2026-10-09 (Fri, 09 Oct 2026)

Changed paths:
M Lib/fontTools/feaLib/parser.py
M Tests/feaLib/parser_test.py

Log Message:
-----------
Merge pull request #4268 from RavSinghChandan/fealib-stat-location-value-count

[feaLib] raise FeatureLibError for a STAT axis location with no or to…


Compare: https://github.com/fonttools/fonttools/compare/57fce486b0e5...97dace246f11

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