New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Too many logs about glyphs when saving PDFs after changing fonts in matplotlib #3371
Comments
earmingol
changed the title
Message flooding of glyphs when saving PDFs after changing font in matplotlib
Message flooding about glyphs when saving PDFs after changing font in matplotlib
Dec 6, 2023
earmingol
changed the title
Message flooding about glyphs when saving PDFs after changing font in matplotlib
Message flooding about glyphs when saving PDFs after changing fonts in matplotlib
Dec 6, 2023
earmingol
changed the title
Message flooding about glyphs when saving PDFs after changing fonts in matplotlib
Too many logs about glyphs when saving PDFs after changing fonts in matplotlib
Dec 13, 2023
This worked for me:
|
I didn't know matplotlib uses fonttools to subset fonts for embedding in PDF. That's really cool! |
Then maybe report it to matplotlib to do that? |
I put it there: matplotlib/matplotlib#24546 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I am getting the a bunch of log messages (shown at the end of this post) when changing fonts in matplotlib (v3.8.2) using
plt.rcParams.update({"pdf.fonttype": 42, "ps.fonttype": 42})
These messages are displayed when I am saving a plot as a pdf.
I am using the latest version of fonttools (v4.46) and python 3.11. I tried downgrading the version of fontools to v4.38 and/or downgrading matplotlib to different versions, but I still get the same issue.
I realized that I stop getting these messages when I reset the matplotlib params using:
I would use the default fonts, but I need to use another library that uses this font internally to save plots as PDFs (see: https://github.com/zqfang/GSEApy/blob/4d2540f22cfadc36607540a59b504a4c94dbe826/gseapy/plot.py#L274).
Any idea how to avoid getting these messages?
The message I get is:
The text was updated successfully, but these errors were encountered: