Skip to content

Incompatible glyphs must be removed from designspace rules #3

@thundernixon

Description

@thundernixon

I've added a set of rules to a variable font to swap .italic glyphs in for a high range in the slant axis.

However, that means that FontMake is now failing with messages like this:

File "/Users/stephennixon/type-repos/recursive/venv/lib/python3.7/site-packages/fontTools/ttLib/ttFont.py", line 602, in getGlyphID
    glyphID = d[glyphName]
KeyError: ('g', 'SingleSubst[0]', 'Lookup[0]', 'LookupList')

This is because some of the glyphs in my rules were incompatible for cu2qu, and therefore had to be removed. So, for instance, the font can't apply the GSUB rule g.italic, because this glyph is no longer in the varfont-prepped fonts.

Ideally, the prep script should check the designspace for rules, and remove rules that can no longer be supported.

This is dependant on the prep script doing a better job at catching things that can't be processed by cu2qu: #2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions