merge_woff_metadata.py: make sure flavor is in "woff" or "woff2"
This commit is contained in:
parent
0782513d4d
commit
9c6c4c4f4c
@ -27,8 +27,9 @@ def main(args=None):
|
|||||||
|
|
||||||
font = TTFont(infile)
|
font = TTFont(infile)
|
||||||
|
|
||||||
if font.flavorData is None:
|
if font.flavor not in ("woff", "woff2"):
|
||||||
font.flavorData = WOFFFlavorData()
|
print("Input file is not a WOFF or WOFF2 font", file=sys.stderr)
|
||||||
|
return 1
|
||||||
|
|
||||||
data = font.flavorData
|
data = font.flavorData
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user