Matplotlib fonts in pdf

Fonts in Matplotlib — Matplotlib 3.6.0 documentation

plt.rcParams["pdf.use14corefonts"] = True