請問,是否可以打印出每種列出的字體具有的每種樣式?所以我知道,例如 Arial 有 Bold、Regular、Italic 等等。謝謝!或者您會推薦一些其他工具來執行此操作嗎?我在 Windows 7 上。import matplotlib.font_manager#help(matplotlib.font_manager)fonts = [f.name for f in matplotlib.font_manager.fontManager.ttflist]print(len(fonts))for i in fonts: print(i)
在 Python 3 中使用 matplotlib.font_manage 獲取所有字體樣式
慕的地8271018
2021-08-24 18:24:08