Force matplotlibrc to use Arial (path of font)

后端 未结 1 1783
难免孤独
难免孤独 2021-01-18 06:24

I have Arial font installed in my system:

/usr/share/fonts/truetype/msttcorefonts/Arial_Bold_Italic.ttf
/usr/share/fonts/truetype/msttcorefonts/arialbi.ttf
/         


        
1条回答
  •  走了就别回头了
    2021-01-18 06:57

    As suggested by @BenjaminRoot to delete the font cache on ~/.matplotlib

    In fact in my Debian system, with python stuff inside virtualenv ecosystem, such folder was located at ~/.cache/matplotlib/ I have deleted all files and folder and the cache was regenerated again. Now it works! =]

    0 讨论(0)
提交回复
热议问题