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

Font baselineline height is not cross platform #191

Closed
mxa opened this issue Feb 23, 2021 · 7 comments · Fixed by #192
Closed

Font baselineline height is not cross platform #191

mxa opened this issue Feb 23, 2021 · 7 comments · Fixed by #192

Comments

@mxa
Copy link

mxa commented Feb 23, 2021

The font baseline is offset on different platforms.
On MacOS the font sits significantly higher than on Linux. This becomes apparent at big fontsizes. Use a font with a size of 100 for testing. Size matches perfectly, also the horizontal positioning, just the vertical dimension of the baseline is off.
(Kerning is not pixel-perfect either, but that's sadly to be expected).

@mxa mxa changed the title Font line position is not cross platform Font baselineline height is not cross platform Feb 23, 2021
@mxa
Copy link
Author

mxa commented Mar 12, 2021

Thanks for fixing. What's the roadmap for this to be released? It turns out to be quite difficult to cherry pick this one and integrate it into the current vst3sdk without other kinds of things to break.

@scheffle
Copy link
Collaborator

This will be released with the next vstsdk update.

@mxa
Copy link
Author

mxa commented Apr 10, 2021

@scheffle With the newly released vstsdk the font baselines of Linux and MacOS match up, but on Windows a font with a size of 92 is about 15px elevated relative to the other platforms. Can you reopen the issue, or should I make a new issue? With the old SDK Linux was the outlier, now Windows is.

@jpcima
Copy link
Contributor

jpcima commented Apr 10, 2021

I confirm, there is definitely vertical text offset problems on Windows OS.
Back in the pango PR, I posted the picture below as an example.

I don't have Windows running at the moment, but I can describe situation as follows:
when the label below contains the unicode musical sharp symbol (1), and when it doesn't (2):
the text gets displayed on a different base line, and so the text "jumps" when it switches.

Capture d’écran_2021-02-26_14-56-56

@scheffle
Copy link
Collaborator

@mxa - There's no change on the Windows side in the last versions. Please make a new entry with example screenshots. Thanks.

@mxa
Copy link
Author

mxa commented May 25, 2021

@mxa - There's no change on the Windows side in the last versions. Please make a new entry with example screenshots. Thanks.

OK, will do that next time I boot the windows box.

@mxa
Copy link
Author

mxa commented May 27, 2021

Opened a new issue #207

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

Successfully merging a pull request may close this issue.

3 participants