Fixed loading fonts on linux

This commit is contained in:
Beniamin Pel 2022-05-23 16:16:09 +02:00
parent a7c0fc2a3c
commit e42db49ca5

View File

@ -51,7 +51,7 @@ class FontManager:
return cls.windows_load_font(font_path, private=True, enumerable=False)
# Linux
elif sys.platform.startswith("win"):
elif sys.platform.startswith("linux"):
try:
shutil.copy(font_path, os.path.expanduser("~/.fonts/"))
return True