How can I get the available fonts list with matplotlib? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I get the available fonts list with matplotlib?

for solving the question, I saw the following solution : import matplotlib.font_manager flist = matplotlib.font_manager.get_fontconfig_fonts() names =[matplotlib.font_manager.FontProperties(fname=fname).get_name() for fname in flist] print(names) However, the result is an empty list; [] Then, how can I solve this problem???

26th Dec 2019, 7:58 AM
김준영
김준영 - avatar
1 Answer
0
doesn't it use whatever fonts you have installed?
27th Dec 2019, 8:53 AM
grdr