Skip to content

More font rendering issues of mathtext #4987

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

Closed
WeatherGod opened this issue Aug 25, 2015 · 1 comment
Closed

More font rendering issues of mathtext #4987

WeatherGod opened this issue Aug 25, 2015 · 1 comment

Comments

@WeatherGod
Copy link
Member

As noted by @zblz in #4873:

Yes, the kerning for the f is particularly tight, but it is tight everywhere, as you mention for the
regular f and numerals 2 and 9 (and that's why I added them to that line), so it is not an issue with
the sub/super script. I tried to minimize it for cm, where it looks pretty good, but did not manage for
stix of stixsans. Maybe the kerning for the f should be slightly widened elsewhere to match TeX. I
added a modification of the superscript kerning that takes into account how much the last character
rises above the x-height to try and mitigate this, but it is tricky: if it is correct for the italic f, it is too
wide for, e.g., $E^0$ (which is already slightly wider than tex), so I tried to reach a compromise.

The prime issue only happens for stix and stixsans, where it seems to match $\prime$ to an already
superscripted prime, as opposed to a nice and big prime for TeX and cm. This I also believe is
outside the scope of this PR, but should definitely be fixed so they are consistent.

All in reference to these images:
mathtex-cm
LaTeX
mathtext-stix
mathtext-stixsans

zblz added a commit to zblz/matplotlib that referenced this issue Oct 29, 2015
see comments in matplotlib#4873 and matplotlib#4987: Primes in stix and DejaVu are already
superscripted, so the TeX way of setting a prime as $f^\prime$ results in
doubly-superscripted primes. For consistency with TeX, here we use the CM prime
symbol.
zblz added a commit to zblz/matplotlib that referenced this issue Oct 29, 2015
see comments in matplotlib#4873 and matplotlib#4987: Primes in stix and DejaVu are already
superscripted, so the TeX way of setting a prime as $f^\prime$ results in
doubly-superscripted primes. For consistency with TeX, here we use the CM prime
symbol.
zblz added a commit to zblz/matplotlib that referenced this issue Oct 29, 2015
see comments in matplotlib#4873 and matplotlib#4987: Primes in stix and DejaVu are already
superscripted, so the TeX way of setting a prime as $f^\prime$ results in
doubly-superscripted primes. For consistency with TeX, here we use the CM prime
symbol.
zblz added a commit to zblz/matplotlib that referenced this issue Nov 5, 2015
see comments in matplotlib#4873 and matplotlib#4987: Primes in stix and DejaVu are already
superscripted, so the TeX way of setting a prime as $f^\prime$ results in
doubly-superscripted primes. For consistency with TeX, here we use the CM prime
symbol.
@efiring
Copy link
Member

efiring commented May 23, 2019

Please reopen this if it still needs attention. Closing for lack of activity; not clear whether there is still a problem.

@efiring efiring closed this as completed May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants