Uh oh!
There was an error while loading. Please reload this page.
Route selected mathtext glyphs to Computer Modern - #744
Conversation
cvanelteren
commented
Jun 29, 2026
This patch adds an opt-in |
Can you test this PR @lzhang1994 to see if this would work for you? |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
properly. The following changes are made: - Rename mathtext.cm to mathtext.cm_symbols to avoid confusion with matplotlib's mathtext.fontset 'cm' - Clear matplotlib's mathtext parse cache when the setting changes so toggling takes effect on long-lived parsers - Load Bakoma fonts lazily and read the rc setting once per parse - Keep Computer Modern cal when mathtext.cal is set to 'regular' - Warn once when Bakoma fonts are unavailable on old matplotlib - Broaden routing to all cmex10 big operators - Fix docs example: mathtext parses at draw time, so rc.context around ax.text had no effect
- Outline the three levels of math font customization: matching the document font, Computer Modern symbol routing, and full usetex - Demonstrate per-text-object math fonts with a multi-row comparison - Give mathtext.cm_symbols its own linkable subsection with richer before/after comparison figures
cvanelteren
commented
Jul 19, 2026
We can merge this as this is opt-in so it won't hurt and gives more options to the end user. |
Uh oh!
There was an error while loading. Please reload this page.
Closes#717
This patch allows users to use Computer Modern font for certain latex symbols.
snippet