[mtiLib] Set lookup type even if lookup is empty

For real this time.
This commit is contained in:
Behdad Esfahbod 2016-12-27 15:19:22 -05:00
parent 6380b7041c
commit 4b38a20cee

View File

@ -817,8 +817,6 @@ def parseLookup(lines, tableTag, font, lookupMap=None):
lookup.LookupFlag,filterset = parseLookupFlags(lines)
if filterset is not None:
lookup.MarkFilteringSet = filterset
with lines.until('lookup end'):
lookup.LookupType, parseLookupSubTable = {
'GSUB': {
'single': (1, parseSingleSubst),
@ -842,6 +840,7 @@ def parseLookup(lines, tableTag, font, lookupMap=None):
},
}[tableTag][typ]
with lines.until('lookup end'):
subtables = []
while lines.peek():