I'm writing SVG text in Pycairo and want to set the font like so:
context.select_font_face ("Adventure", Cairo.FontSlant.NORMAL, Cairo.FontWeight.BOLD);
(example from Valadoc)
but I want to know which font names I can use / are available without having to try and guess. I'm hoping I can generate a list with Python, ideally with Pycairo. I'm on Windows with Python 3.7.9 at the moment. I can't find anything in the documentation.
There are good solutions at How to get a list of installed windows fonts using python? but rather than getting surprised at some point, I'd like to find out which methods give me all the fonts Pycairo sees, including potential additional folders (like %UserProfile%\.fonts\
for Inkscape) and excluding any paths it might not see.