mirror of
https://github.com/googlefonts/noto-emoji.git
synced 2025-06-07 23:37:58 +00:00
Make sure to initialize lookup table even if LookupType is set.
This commit is contained in:
parent
20c0cd9af3
commit
bb5c080aeb
1 changed files with 3 additions and 3 deletions
|
@ -259,13 +259,13 @@ def get_gsub_ligature_lookup(font):
|
|||
assert lookup.LookupFlag == 0
|
||||
|
||||
# importXML doesn't fully init GSUB structures, so help it out
|
||||
st = lookup.SubTable[0]
|
||||
if not hasattr(lookup, 'LookupType'):
|
||||
st = lookup.SubTable[0]
|
||||
assert st.LookupType == 4
|
||||
setattr(lookup, 'LookupType', 4)
|
||||
|
||||
if not hasattr(st, 'ligatures'):
|
||||
setattr(st, 'ligatures', {})
|
||||
if not hasattr(st, 'ligatures'):
|
||||
setattr(st, 'ligatures', {})
|
||||
|
||||
return lookup
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue