Hi!
Fonts after JUCE 8 upgrade appear “squashed” vertically - but the width is the same.
I addressed the warnings of the Font constructors I used and pass FontOptions instead, that wasn’t it.
Any tips?
Hi!
Fonts after JUCE 8 upgrade appear “squashed” vertically - but the width is the same.
I addressed the warnings of the Font constructors I used and pass FontOptions instead, that wasn’t it.
Any tips?
I’ve made a picture:
Top, JUCE 7, bottom, JUCE 8.
As you see, while the width is the same the text is shorter in height.
All I did was switch to v8, and try yo see if using FontOptions would make a difference. All I do for the font is set a size, and style flags (bold/plain).
Reading the Font / FontOptions classes I don’t see any standout option to address this.
I forgot to add yesterday that it’s on Windows.
Thanks!
See JUCE/BREAKING_CHANGES.md at master · juce-framework/JUCE · GitHub for reason why and how to “fix”.
Thank you!
I didn’t find that when searching on the forum, the change makes a lot of sense!
I think in this case what you are seeing is likely the result of font hinting, specifically due to the new Direct2D renderer. What does the same font at the same size render like in other applications?
If you really need to avoid this you can…
It’s of course also possible there is a slight size difference too but looking at the images you supplied I’m not sure that is the case. If you look at the gif I’ve included below it seems to me as I said it’s probably just following the hinting of the font.
Thanks!
It’s most likely just what asimilion mentioned, the “Breaking Change” of unifying font rendering across platforms - a great improvement, thanks for that!
I haven’t checked on MacOS yet, but I’m pretty sure that it’ll be this change.
I’ll have to read all those breaking changes, when switched to 8 I missed that document and just steamed ahead.
Do consider this as “resolved” for now!