Merge pull request #106 from bengy3d/linux-font-hotfix

Fixed loading fonts on linux
This commit is contained in:
Tom Schimansky 2022-05-23 16:27:01 +02:00 committed by GitHub
commit 3a5d34cef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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