mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
Merge pull request #106 from bengy3d/linux-font-hotfix
Fixed loading fonts on linux
This commit is contained in:
commit
3a5d34cef6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user