This commit is contained in:
justvanrossum 2020-01-24 10:47:48 +01:00
parent a37dab3824
commit 874e74b834

View File

@ -922,7 +922,7 @@ def _open_font(path, master_finder=lambda s: s):
font = TTFont()
font.importXML(master_path)
elif tp in ("TTF", "OTF", "WOFF", "WOFF2"):
font = TTFont(master_path)
font = TTFont(master_path, lazy=True)
else:
raise VarLibError("Invalid master path: %r" % master_path)
return font