otTables: no need get LayerRecordCount by name, we already have it in scope

Fixes #2468
This commit is contained in:
Cosimo Lupo 2021-12-13 11:17:08 +00:00
parent 6481cff159
commit d190a7c206

View File

@ -1182,7 +1182,6 @@ class COLR(BaseTable):
if conv.name != "LayerRecordCount":
subReader.advance(conv.staticSize)
continue
conv = self.getConverterByName("LayerRecordCount")
reader[conv.name] = conv.read(subReader, font, tableDict={})
break
else: