woff2: don't attempt to normalize glyf/loca if missing (e.g. CBDT/CBLC fonts like NotoColorEmoji.ttf)
This commit is contained in:
parent
f20736690d
commit
be147e965d
@ -226,7 +226,11 @@ class WOFF2Writer(SFNTWriter):
|
||||
# See:
|
||||
# https://github.com/khaledhosny/ots/issues/60
|
||||
# https://github.com/google/woff2/issues/15
|
||||
if isTrueType and "glyf" in self.flavorData.transformedTables:
|
||||
if (
|
||||
isTrueType
|
||||
and "glyf" in self.flavorData.transformedTables
|
||||
and "glyf" in self.tables
|
||||
):
|
||||
self._normaliseGlyfAndLoca(padding=4)
|
||||
self._setHeadTransformFlag()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user