[fonttools/fonttools] c5efca: [cu2qu.ufo] skip processing empty glyphs to suppor...

0 views
Skip to first unread message

Cosimo Lupo

unread,
Oct 11, 2025, 2:35:21 PM (3 days ago) Oct 11
to fontto...@googlegroups.com
Branch: refs/heads/cu2qu-ignore-empty-glyphs
Home: https://github.com/fonttools/fonttools
Commit: c5efcaef076bc2f60fafd3416a2d5c1bd0b69058
https://github.com/fonttools/fonttools/commit/c5efcaef076bc2f60fafd3416a2d5c1bd0b69058
Author: Cosimo Lupo <cl...@google.com>
Date: 2025-10-11 (Sat, 11 Oct 2025)

Changed paths:
M Lib/fontTools/cu2qu/ufo.py
M Tests/cu2qu/ufo_test.py

Log Message:
-----------
[cu2qu.ufo] skip processing empty glyphs to support sparse kerning masters

This will help with the use case described at https://github.com/googlefonts/fontmake/issues/1158

varLib already treats empty glyphs in non-default 'sparse' masters as non participating in gvar interpolation.
But if a designspace contains a UFO with such empty glyphs, cu2qu rejects them because it expects all input glyphs to have the same number of segments.



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

Cosimo Lupo

unread,
Oct 13, 2025, 12:01:44 PM (17 hours ago) Oct 13
to fontto...@googlegroups.com
Branch: refs/heads/main
Home: https://github.com/fonttools/fonttools
Commit: c5efcaef076bc2f60fafd3416a2d5c1bd0b69058
https://github.com/fonttools/fonttools/commit/c5efcaef076bc2f60fafd3416a2d5c1bd0b69058
Author: Cosimo Lupo <cl...@google.com>
Date: 2025-10-11 (Sat, 11 Oct 2025)

Changed paths:
M Lib/fontTools/cu2qu/ufo.py
M Tests/cu2qu/ufo_test.py

Log Message:
-----------
[cu2qu.ufo] skip processing empty glyphs to support sparse kerning masters

This will help with the use case described at https://github.com/googlefonts/fontmake/issues/1158

varLib already treats empty glyphs in non-default 'sparse' masters as non participating in gvar interpolation.
But if a designspace contains a UFO with such empty glyphs, cu2qu rejects them because it expects all input glyphs to have the same number of segments.


Commit: 97f810939a922b215622b00a58cf3eee2825505d
https://github.com/fonttools/fonttools/commit/97f810939a922b215622b00a58cf3eee2825505d
Author: Cosimo Lupo <cos...@anthrotype.com>
Date: 2025-10-13 (Mon, 13 Oct 2025)

Changed paths:
M Lib/fontTools/cu2qu/ufo.py
M Tests/cu2qu/ufo_test.py

Log Message:
-----------
Merge pull request #3956 from fonttools/cu2qu-ignore-empty-glyphs

[cu2qu.ufo] skip processing empty glyphs to support sparse kerning masters


Compare: https://github.com/fonttools/fonttools/compare/3c1822544d60...97f810939a92
Reply all
Reply to author
Forward
0 new messages