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

Skip to content

Commit c25d273

Browse files
committed
Search for fonts in XDG directory as well.
It currently checks ~/.fonts, but not ~/.local/share/fonts, which fontconfig does do.
1 parent 3b5f672 commit c25d273

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/font_manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@
114114
# common application, not really useful
115115
"/usr/lib/openoffice/share/fonts/truetype/",
116116
# user fonts
117+
str(Path(os.environ.get('XDG_DATA_HOME',
118+
Path.home() / ".local/share")) / "fonts"),
117119
str(Path.home() / ".fonts"),
118120
]
119121

0 commit comments

Comments
 (0)