You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a class in a feature file includes duplicate glyphs, buildCoverage is called on a list that includes duplicate glyphs. buildCoverage sorts the input glyphs but does not remove duplicates.
The spec says “A Coverage table defines a unique index value, the Coverage Index, for each covered glyph”, but a glyph listed multiple times won’t have a unique index.
This can cause a problem when using the OpenType Sanitizer: if a CoverageFormat1 table lists more glyphs than are declared in 'maxp', OTS reports an error.
The text was updated successfully, but these errors were encountered:
Related problem I've been wanting to fix for a while: feaLib allows empty classes, which it then hands to the builder, and the builder dies. Both issues should be caught earlier.
If a class in a feature file includes duplicate glyphs,
buildCoverage
is called on a list that includes duplicate glyphs.buildCoverage
sorts the input glyphs but does not remove duplicates.The spec says “A Coverage table defines a unique index value, the Coverage Index, for each covered glyph”, but a glyph listed multiple times won’t have a unique index.
This can cause a problem when using the OpenType Sanitizer: if a CoverageFormat1 table lists more glyphs than are declared in 'maxp', OTS reports an error.
The text was updated successfully, but these errors were encountered: