大桔子AI

导航

Python --- matplotlib库

1. 查看可显示的所有字体

from matplotlib.font_manager import FontManager

fonts = set(f.name for f in FontManager().ttflist)

for f in sorted(fonts):

  printf(f)

posted on 2024-03-12 21:48  大桔子AI  阅读(19)  评论(0)    收藏  举报