【系统字体下载教程】

使用指令:

1. 字体下载链接

https://www.freefonts.io/
在这里插入图片描述

2. ttf的字体文件存放路径

(1)Window系统默认路径: C:\Windows\Fonts\simsun.ttc
(2)Ubuntu20.04系统路径: ~/anaconda3/envs/yolo_tracking/lib/python3.10/site-packages/matplotlib/mpl-data/fonts/ttf/

3. 清除matplotlib缓存

  cd ~/.cache/matplotlib && rm -rf *.*

猜你喜欢

转载自blog.csdn.net/dally2/article/details/138966012