[compatibility cheker] Allow empty non-default glyphs #1163
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fonttools varLib already treats empty glyphs in non-default masters as non-participating ('sparse') in gvar interpolation.
But fontmake's compatibility checker currently rejects these as it expects all glyphs to have the same number/type of segments.
In fonttools/fonttools#3956 we relaxed this requirement in cu2qu. So we can now let fontmake pass these through.
Adding empty non-default glyhps can be useful for defining masters that only contribute kerning data. The kerning.plist needs the glyphs to be present in the UFO default layer, otherwise the the pair referencing any missing glyphs will be pruned by the ufo2ft kernFeatureWriter. By adding empty glyphs, the kerning pairs can stay and the ufo2ft's VariableKernFeatureWriter can generate a variable kern feature, but no additional gvar deltas will get added for those glyphs.
Fixes #1158