Skip to content
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

Default font does not include all superscript numbers #2401

Closed
jqfeld opened this issue Nov 4, 2022 · 2 comments
Closed

Default font does not include all superscript numbers #2401

jqfeld opened this issue Nov 4, 2022 · 2 comments

Comments

@jqfeld
Copy link
Contributor

jqfeld commented Nov 4, 2022

I just noticed, that the new default font (TeX Gyre Heros Makie, since #1897) does not include all superscript numbers (only 1-3 are included). This leads to odd looking log-scale plots, because for the numbers 0, 4-9 DejaVu Sans is used as fallback (#1296):
test.pdf

One way of solving this problem, would be to add the missing superscripts to the font. But this of course only fixes the given font (still, for the default font it might be reasonable).
Therefore, one might think about a different fallback strategy if the superscripts are missing. The most naive approach, that comes to mind, would be some automatic generation through scaling and translating the normal number glyphs. (No idea how hard this would be to implement. 😅 )

@jkrumbiegel
Copy link
Member

#2321 is doing that

@jqfeld
Copy link
Contributor Author

jqfeld commented Nov 5, 2022

Ah, awesome! Thanks!

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

3 participants