Fix #5998: Support fallback font correctly#6203
Conversation
lib/matplotlib/mathtext.py
Outdated
|
|
||
| def __init__(self, *args, **kwargs): | ||
| # This must come first so the backend's owner is set correctly | ||
| TruetypeFonts.__init__(self, *args, **kwargs) |
There was a problem hiding this comment.
Is the comment above still true?
There was a problem hiding this comment.
Actually, I think it turned out that this move wasn't necessary after all -- I had meant to revert it before committing. I'll do so now.
|
Looks good to me! 👍 Do we have any idea why forcing an italics class was initially needed? Or was it just a bug? |
|
In the context of STIX falling back to Bakoma, it needs to be hardcoded to |
|
Are there no italic numbers? 05 vs 15? I also wonder what is wrong with the baseline of the 't'. |
No, I didn't mean circled, just plain italic numbers, e.g., |
|
Yes -- there are no italic numbers in any of these fonts. |
|
This is ready to merge. |
Fix #5998: Support fallback font correctly
|
backported to v2.x as 819f746 |
Cc: @zblz