Skip to content
Discussion options

You must be logged in to vote

@mozman Ok sounds clear, thanks for your feedback!🙂

By the way, I also found some solution that is a bit ugly from the software engineering and the code readability point of view, but that does the trick in case when someone has a folder with .ttf files that they don't want to install globally (like it was in my case). More specifically, if custom_fonts_paths is a list with paths to the folders with custom fonts, then the following worked for me:

from os.path import join
import matplotlib.font_manager as font_manager

for font in font_manager.findSystemFonts(custom_fonts_paths):
    font_manager.fontManager.addfont(font)


class FixedFontManager(font_manager.FontManager):
    def __init__(s…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by IvanKachaikinCendas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #709 on July 22, 2022 03:38.