I am using texlive on Windows Subsystem for Linux. I'm testing the quality of figures I can create using the python package matplotlib. One thing I'd like to be able to do is make the text in the figures match that of my documents/reports.
I am using TeX Gyre Pagella and TeX Gyre Pagella Math in my main document. I think, in order to tell matplotlib where to look for the font, I need to know where the files that define the font are.
I think the TeX fonts are packaged with my distribution (I don't ever remember installing them but they seem to just work when I compile my documents using LuaLatex), but I've not been able to dig them up.
Does anyone know where they are located?
kpsewhich t1qpl.fdorkpsewhich texgyrepagella-regular.otfwork for you? If not,do a file search in Explorer.matplotlibfrom the solution here. Make sure to use the actual font name and not the file name when specifying thefont.family(e.g. for I would doTeX Gyre Pagellaand nottexgyrepagella-regular)