fix for linux
This commit is contained in:
1 parent
dbf28eeebf
commit
7f609d0f0a
5 files changed
+31
-41
No files matched your search
@@ -25,6 +25,6 @@ linux_font_name_map = {
|
||||
|
||||
def get_default_ttf_font_name():
|
||||
platform = sys.platform
|
||||
if platform == 'win32': return windows_font_name_map.get(system_language, 'cour')
|
||||
if platform[0:3] == 'win': return windows_font_name_map.get(system_language, 'cour')
|
||||
elif platform == 'darwin': return darwin_font_name_map.get(system_language, 'cour')
|
||||
else: return linux_font_name_map.get(system_language, 'cour')
|
||||
Reference in new issue
Block a user