We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 788852f commit 03d0e88Copy full SHA for 03d0e88
src_py/sysfont.py
@@ -87,7 +87,8 @@ def initsysfonts_win32():
87
# Some are named A & B, both names should be processed separately
88
# Ex: the main Cambria file is marked as "Cambria & Cambria Math"
89
for name in name.split("&"):
90
- _parse_font_entry_win(name, font, fonts)
+ if os.path.exists(font): # check if the file actually exists
91
+ _parse_font_entry_win(name, font, fonts)
92
93
return fonts
94
0 commit comments