How can I get the available fonts list with matplotlib? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
0
doesn't it use whatever fonts you have installed?
27th Dec 2019, 8:53 AM
grdr