Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4799341

Browse files
committed
add common font paths to font_manager
1 parent 4ef0163 commit 4799341

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/matplotlib/font_manager.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
X11FontDirectories = [
125125
# an old standard installation point
126126
"/usr/X11R6/lib/X11/fonts/TTF/",
127+
"/usr/X11/lib/X11/fonts",
127128
# here is the new standard location for fonts
128129
"/usr/share/fonts/",
129130
# documented as a good place to install new fonts
@@ -135,7 +136,10 @@
135136
OSXFontDirectories = [
136137
"/Library/Fonts/",
137138
"/Network/Library/Fonts/",
138-
"/System/Library/Fonts/"
139+
"/System/Library/Fonts/",
140+
# fonts installed via MacPorts
141+
"/opt/local/share/fonts"
142+
""
139143
]
140144

141145
if not USE_FONTCONFIG:

0 commit comments

Comments
 (0)