Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4799341

Browse filesBrowse files
committed
add common font paths to font_manager
1 parent 4ef0163 commit 4799341
Copy full SHA for 4799341

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎lib/matplotlib/font_manager.py

Copy file name to clipboardExpand all lines: lib/matplotlib/font_manager.py
+5-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.