[fonttools/fonttools] a91512: [feaLib] Add shorthand for value at default locati...

1 view
Skip to first unread message

Khaled Hosny

unread,
Aug 19, 2026, 10:30:46 AM (7 days ago) Aug 19
to fontto...@googlegroups.com
Branch: refs/heads/variable-scaler-default
Home: https://github.com/fonttools/fonttools
Commit: a915129b5661ca49bf2a46dc0ed786b47ad873fe
https://github.com/fonttools/fonttools/commit/a915129b5661ca49bf2a46dc0ed786b47ad873fe
Author: Khaled Hosny <kha...@aliftype.com>
Date: 2026-08-19 (Wed, 19 Aug 2026)

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

Log Message:
-----------
[feaLib] Add shorthand for value at default location in variable scalar

Writing a number-only without an axis name and colon is used to mean
this is the value for default location. For example, in a font whose
`wght` default is 400:

(100 wght=900:120)

is shorthand for:

(wght=400:100 wght=900:120)


Commit: e14fcffec46f6610ab3c92d29b988601c1af088f
https://github.com/fonttools/fonttools/commit/e14fcffec46f6610ab3c92d29b988601c1af088f
Author: Khaled Hosny <kha...@aliftype.com>
Date: 2026-08-19 (Wed, 19 Aug 2026)

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

Log Message:
-----------
[feaLib] Duplicate default values in variable scalars is an error


Compare: https://github.com/fonttools/fonttools/compare/5c0192897aad...e14fcffec46f

To unsubscribe from these emails, change your notification settings at https://github.com/fonttools/fonttools/settings/notifications

Khaled Hosny

unread,
Aug 19, 2026, 10:38:33 AM (7 days ago) Aug 19
to fontto...@googlegroups.com
Branch: refs/heads/main
Commit: 883aba79a7ecc41f2cffd0c4b1a55f657c4a5351
https://github.com/fonttools/fonttools/commit/883aba79a7ecc41f2cffd0c4b1a55f657c4a5351
Author: Khaled Hosny <kha...@aliftype.com>
Date: 2026-08-19 (Wed, 19 Aug 2026)

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

Log Message:
-----------
Merge pull request #4024 from fonttools/variable-scaler-default

[feaLib] Add shorthand for value at default location in variable scalar


Compare: https://github.com/fonttools/fonttools/compare/15526faf7ec5...883aba79a7ec
Reply all
Reply to author
Forward
0 new messages