Abraham Lee
2016-10-05 19:01:00 UTC
All,
I have an semi-automated process that goes something like this:
1. Open a font that contains lots more glyphs than I will create (as a
template)
2. Edit the glyphs I want to change
3. Remove the glyphs I didn't change
4. Generate the OTF
Everything works just as I expect except for one thing. While in the
process of generating OTF files (step #4), I get the following error (line
593 in "fontforge/lookups.c"):
"Lookup subtable contains unused glyph [XYZ] making the whole subtable
invalid"
The larger font that has lots of lookups. However, since I only edit a
subset of the original glyphs and remove the others, some of the lookups
end up containing ligature substitution data that no longer is valid.
My question is this: Is there a fast way to clean up the lookup subtables
prior to so that any reference to now non-existent glyphs can be removed?
I'd like to be able to do this via the Python API since I'll be doing this
quite a few times with different fonts.
Thanks in advance,
Abraham
P.S. Perhaps the error should specifically mention that it is a "ligature"
subtable? That would at least help in pin-pointing the problem faster.
I have an semi-automated process that goes something like this:
1. Open a font that contains lots more glyphs than I will create (as a
template)
2. Edit the glyphs I want to change
3. Remove the glyphs I didn't change
4. Generate the OTF
Everything works just as I expect except for one thing. While in the
process of generating OTF files (step #4), I get the following error (line
593 in "fontforge/lookups.c"):
"Lookup subtable contains unused glyph [XYZ] making the whole subtable
invalid"
The larger font that has lots of lookups. However, since I only edit a
subset of the original glyphs and remove the others, some of the lookups
end up containing ligature substitution data that no longer is valid.
My question is this: Is there a fast way to clean up the lookup subtables
prior to so that any reference to now non-existent glyphs can be removed?
I'd like to be able to do this via the Python API since I'll be doing this
quite a few times with different fonts.
Thanks in advance,
Abraham
P.S. Perhaps the error should specifically mention that it is a "ligature"
subtable? That would at least help in pin-pointing the problem faster.