Make sure to initialize lookup table even if LookupType is set.

pull/98/head
Doug Felt 2017-03-02 10:53:48 -08:00
parent 20c0cd9af3
commit bb5c080aeb
1 changed files with 3 additions and 3 deletions

View File

@ -259,8 +259,8 @@ def get_gsub_ligature_lookup(font):
assert lookup.LookupFlag == 0
# importXML doesn't fully init GSUB structures, so help it out
if not hasattr(lookup, 'LookupType'):
st = lookup.SubTable[0]
if not hasattr(lookup, 'LookupType'):
assert st.LookupType == 4
setattr(lookup, 'LookupType', 4)