-
-
Notifications
You must be signed in to change notification settings - Fork 328
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
Italic text alignment #4777
Comments
Thanks for the pointers! I'm not deeply familiar with fonts and their metrics, just looking for a nice workaround to get the uniform visual alignment (preferably without manually digging into legend/layout internals). Maybe a different default latex font then? |
Yes if you find a different font variant that would be the easiest solution. |
I wonder if a font-independent solution could work as well – for example, to constrain the rendered lineheight to be the same for all legend entries. Doesn't matter which one is chosen (probably the largest), just that it's consistent. |
I noticed that adding italic text to the legend moves the text down a bit compared to regular font – notice that the 2nd entry has a larger padding at the top and a smaller padding at the bottom:
The workaround I found for now is this:
But would be great to align the text automatically so that both italic and regular fonts are consistent.
]st -m Makie
) 0.21]activate --temp; add Makie
)The text was updated successfully, but these errors were encountered: