fix(macOS): add Supplemental fonts search path for system and default fonts
This commit is contained in:
@@ -109,6 +109,7 @@ def get_system_fonts():
|
|||||||
elif system == "Darwin": # macOS
|
elif system == "Darwin": # macOS
|
||||||
font_dirs = [
|
font_dirs = [
|
||||||
"/System/Library/Fonts/",
|
"/System/Library/Fonts/",
|
||||||
|
"/System/Library/Fonts/Supplemental/",
|
||||||
"/Library/Fonts/",
|
"/Library/Fonts/",
|
||||||
os.path.expanduser("~/Library/Fonts/")
|
os.path.expanduser("~/Library/Fonts/")
|
||||||
]
|
]
|
||||||
@@ -189,6 +190,8 @@ def find_default_truetype_font():
|
|||||||
]
|
]
|
||||||
elif system == "darwin":
|
elif system == "darwin":
|
||||||
preferred_fonts = [
|
preferred_fonts = [
|
||||||
|
"/System/Library/Fonts/Supplemental/Arial.ttf",
|
||||||
|
"/System/Library/Fonts/Supplemental/Courier New.ttf",
|
||||||
"/System/Library/Fonts/SFNS.ttf",
|
"/System/Library/Fonts/SFNS.ttf",
|
||||||
"/System/Library/Fonts/SFNSDisplay.ttf",
|
"/System/Library/Fonts/SFNSDisplay.ttf",
|
||||||
"/System/Library/Fonts/Helvetica.ttc",
|
"/System/Library/Fonts/Helvetica.ttc",
|
||||||
|
|||||||
Reference in New Issue
Block a user