fontmake: fontmake error when compiling Roboto Italic variable fonts
After updating fontmake on Feb 6th at 10pm cst (latest commit was this), I attempted to generate new Roboto variable fonts using the interpolated source ufos found here: https://github.com/erinmclaughlin/roboto/tree/everything-in-source-interp/src/v2
I used this command
fontmake -m RobotoUpright.designspace -o variable --no-production-names
to generate RobotoUpright-GX.ttf successfully.
Unfortunately, fontmake -m RobotoItalic.designspace -o variable --no-production-names did not work. Here are the last few lines of output before the error, in case it is helpful:
File “/Users/erinmclaughlin/env/lib/python2.7/site-packages/fontTools/varLib/merger.py”, line 410, in merge subtables = [_Lookup_PairPos_subtables_canonicalize(l.SubTable, merger.font) for l in lst] File “/Users/erinmclaughlin/env/lib/python2.7/site-packages/fontTools/varLib/merger.py”, line 397, in _Lookup_PairPos_subtables_canonicalize tail.insert(0, _Lookup_PairPosFormat1_subtables_merge_overlay(head, font)) File “/Users/erinmclaughlin/env/lib/python2.7/site-packages/fontTools/varLib/merger.py”, line 376, in _Lookup_PairPosFormat1_subtables_merge_overlay [v.PairSet for v in lst]) File “/Users/erinmclaughlin/env/lib/python2.7/site-packages/fontTools/varLib/merger.py”, line 144, in merge_GlyphOrders assert all(sorted(vs, key=sortKey) == vs for vs in lst) AssertionError: (‘Lookup’, ‘[1]’, ‘list’, ‘.Lookup’, ‘LookupList’, ‘.LookupList’, ‘GPOS’, ‘.table’, 'table_G_P_O_S’)
The Italic variable font did successfully compile several weeks ago using the --no-gpos command before I updated fontmake.
Let me know if there’s anything else I can provide that can be of help. Thanks!
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 28 (16 by maintainers)
Can someone clarify what problem we are talking about? This looks like transcript of a support call than a bug report now. 😃
hello @erinmclaughlin, thanks for your report!
The
--no-gposoption is in a separate branch, which has never been merged into master and is now out of sync: https://github.com/googlei18n/fontmake/commit/a08c2b53baa7d6aa452b795c01e59f3a8015c33b@brawer @behdad what do we do? Do we want to add the option?
About fontmake failing with RobotoItalic.designpace, the AssertionError is coming from fontTools.varLib.merger:
https://github.com/fonttools/fonttools/blob/ef0eb9dc8f9d634988ab7c4d2859216d5bd1b291/Lib/fontTools/varLib/merger.py#L143-L144
It could be that the fonts you’re merging don’t share the same glyph order?