demonstrate #1808
This commit is contained in:
parent
a37dab3824
commit
874e74b834
@ -922,7 +922,7 @@ def _open_font(path, master_finder=lambda s: s):
|
|||||||
font = TTFont()
|
font = TTFont()
|
||||||
font.importXML(master_path)
|
font.importXML(master_path)
|
||||||
elif tp in ("TTF", "OTF", "WOFF", "WOFF2"):
|
elif tp in ("TTF", "OTF", "WOFF", "WOFF2"):
|
||||||
font = TTFont(master_path)
|
font = TTFont(master_path, lazy=True)
|
||||||
else:
|
else:
|
||||||
raise VarLibError("Invalid master path: %r" % master_path)
|
raise VarLibError("Invalid master path: %r" % master_path)
|
||||||
return font
|
return font
|
||||||
|
Loading…
x
Reference in New Issue
Block a user