Closed arrowtype closed 2 years ago
I also need to figure out how to find a basic count of kerning pairs.
Turns out, there is a "Kerning" panel that displays this info. Shantell Sans currently has 24,974 pairs, which does seem like a lot.
I’ll see how this is changed by running KernOn at a lower limit, starting with 45kb rather than 90kb.
Nice – the library https://github.com/jenskutilek/glyphspkg will convert between glyphspackage and glyphs files!
Use Extension Kerning
custom parameterpyftsubset Roboto-Regular.ttf --glyphs='*' --layout-features-='kern'
, it eliminates 26kb of dataUse Extension Kerning
custom parameter and see if that allows a GPOS overflow to be handled (see https://forum.glyphsapp.com/t/kerning-pairs-is-there-a-maximum-amount/18000/4)... it works!Use Extension Kerning
custom parameterExperiments here took place in https://github.com/arrowtype/shantell-sans/tree/42404b878ddbc28b0af694ab575a6710522d1a4d, but I will probably abandon that branch.
It seems like we have two main choices:
The full build process does add about 1/3 extra kerning data to many instances, by adding in a lot of alt glyphs. So, that might be one reason to set a reasonable limit in KernOn (like 50kb), then proof it to find any important misses, and add those as models or independent pairs. I'd like to test this approach (option 1, above) first.
For now, I think it makes sense to just use a KernOn limit of 50kb, and we can change if we find a reason to.
Anya is having trouble proofing the font due to an overflowing GPOS table, which gives the following error message upon "Export":
My general (and possibly not quite accurate) understanding of it is that the basic GPOS table can only hold a certain number of records, and kerns go in there. So, a build system can handle that “overflow” by putting that kern data somewhere else. This isn’t just a KernOn issue – I get similar messages in the builds of recursive and name sans. I think it tends to come up when a font has a lot of sources with kerning.
The Glyphs Forum only has this unhelpful post, stating that there are "a lot" of kerning pairs. https://forum.glyphsapp.com/t/gpos-error-when-exporting-variable-font/23208/3
I am guessing we have two main options…
I also need to figure out how to find a basic count of kerning pairs.