This post shows another tool in addition to the other good answers. The following is based on your MWE
\documentclass{article}
\usepackage{textgreek}
\begin{document}
\textit{testθτμ}%ϑ
$test\theta\tau\mu$
\end{document}
You might be able to use pdffonts in a shell of your choice to generate a table of all fonts of the PDF (I replaced some parts by [...]):
$ pdflatex Example.SE.tex; echo "\nTable for Ryan White:"; pdffonts Example.SE.pdf
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023) (preloaded format=pdflatex)
[...]
Output written on Example.SE.pdf (1 page, 39405 bytes).
Transcript written on Example.SE.log.
Table for Ryan White:
name type encoding emb sub uni object ID
MSKRKD+CMTI10 Type 1 Builtin yes yes yes 4 0
TPJLSH+grmi1000 Type 1 Builtin yes yes yes 5 0
OIWUEJ+SFTI1000 Type 1 Custom yes yes yes 6 0
RYTSZC+CMMI10 Type 1 Builtin yes yes yes 7 0
SDXKYB+CMR10 Type 1 Builtin yes yes yes 8 0
I get a similar table by $ latex Example.SE.tex; vipdfm Example.SE.dvi; echo "\nTable for Ryan White:"; pdffonts Example.SE.pdf:
name type encoding emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
BGNOPA+CMTI10 Type 1C Builtin yes yes yes 4 0
DOYMNM+grmi1000 Type 1C Builtin yes yes yes 5 0
VQMNVE+SFTI1000 Type 1C WinAnsi yes yes yes 6 0
SIZLWA+CMMI10 Type 1C Builtin yes yes yes 7 0
ZIUSPE+CMR10 Type 1C Builtin yes yes yes 8 0
You will find descriptions of the abbreviations like CMTI10 (Computer Modern Italic, "more condensed and slightly lighter", size 10pt) on https://ctan.org/tex-archive/fonts/cm/mf. Others informations are available at https://eng.m.fontke.com/font/10030505/detail/. SFTI1000 is listed on SFTI1000 as "Postscript name" of Computer Modern. grmi1000 seems to be an italic one of the Claudio Beccari Greek fonts, see
https://ctan.org/tex-archive/fonts/greek/cbfonts/fonts/tfm/cbgreek and https://ctan.org/pkg/cbgreek-complete. If you remove \usepackage{textgreek} and \textit{testθτμ}of your file and compile again then only CMMI10 (Computer Modern Italic, "not condensed and not quite as light", 10pt) and CMR10 (Computer Modern Italic, "basic", 10pt) remain.
Thus, a precise nerd's answer to your question (before an edit) "What is Latex's math mode font?" is CMMI10 (Computer Modern Italic, "not condensed and not quite as light", 10pt) with respect to the set up mentioned above.
Observe the differences to LuaTeX:
$ lualatex Example.SE.tex; echo "\nTable for Ryan White:"; pdffonts Example.SE.pdf
This is LuaHBTeX, Version 1.17.0 (TeX Live 2023)
[...]
Output written on Example.SE.pdf (1 page, 12154 bytes).
Transcript written on Example.SE.log.
Table for Ryan White:
name type encoding emb sub uni object ID
EJJTSY+LMRoman10-Italic CID Type 0C Identity-H yes yes yes 4 0
RYTSZC+CMMI10 Type 1 Builtin yes yes no 5 0
JFRMQG+LMRoman10-Regular CID Type 0C Identity-H yes yes yes 6 0
LMRoman is Latin Modern.
Compiling
\documentclass{article}
\usepackage{textgreek}
\usepackage{unicode-math} % ADDED
\begin{document}
\textit{testθτμ}
$test\theta\tau\mu$
\end{document}
gives
$ lualatex Example.SE.tex; echo "\nTable for Ryan White:"; pdffonts Example.SE.pdf
This is LuaHBTeX, Version 1.17.0 (TeX Live 2023)
[...]
Output written on Example.SE.pdf (1 page, 6180 bytes).
Transcript written on Example.SE.log.
Table for Ryan White:
name type encoding emb sub uni object ID
EJJTSY+LMRoman10-Italic CID Type 0C Identity-H yes yes yes 4 0
WLUBUQ+LatinModernMath-Regular CID Type 0C Identity-H yes yes yes 5 0
JFRMQG+LMRoman10-Regular CID Type 0C Identity-H yes yes yes 6 0
\documentclass{article} \begin{document} $\theta\tau\mu$ \end{document}: adding\showouputgives e.g.\OML/cmm/m/it/10. Perhaps you are using a document that does not use the standard font setup? – Joseph Wright Dec 14 '23 at 04:59I've added an example to my question. I don't understand the difference between the two outputs, even though tentatively they're both CM.
– Ryan White Dec 14 '23 at 05:53text.usetexperhaps? https://stackoverflow.com/questions/11367736/matplotlib-consistent-font-using-latex (https://tex.stackexchange.com/questions/30998/set-fonts-in-matplotlib-graphs-equal-to-tex-document has an alternative) – user202729 Dec 14 '23 at 07:45