Hey there,
so I decided to add support for MacOS 10.13 and 10.14 and everything works and looks great in those versions except for the text written using the Inter font.
Yup, but it’s supposed to be in english and it looks as it should in MacOS 10.15 and up. The issue arises in any Mac OS version below that.
So it has to be something related to those OS versions, right?
IDK, I’m a bit lost.
Ok. It’s hard to tell what your screenshot is supposed to display.
I’ve never had problems with wrong characters, unless a font is fucked somehow.
I compile the earliest OS version I can with Xcode. What happens if you draw some text in paint() with a standard g.drawText()?
Ok. Then it must have something to do with how I’m implementing the fonts, I assume?
Could you tell me how you implement them?
I add them to my binary data and then do this:
static const Font getInterFont()
{
static auto typeface = Typeface::createSystemTypefaceFor(MyBinaryData::Inter_ttf, MyBinaryData::Inter_ttfSize);
return Font (typeface);
}
//and then I use it in my Look & Feel like this
//constructor
font = Font(Utility::getInterFont());
font.setHeight(14.f);
//drawRotarySlider
g.drawText(slider.getName(), nameBounds, Justification::centred);
Also, deployment target is 10.13, so it should work in 10.14.
I’d be interested to know which JUCE version you’re using. There were a lot of changes to font handling in JUCE 8, so if you’re using an older version it’d be worth updating and checking whether the problem persists.
I have JUCE 7 right now.
I haven’t tested this in JUCE 8 but it might be worth checking out.
I tested GUI performance in JUCE 8 and it was MUCH better on Windows, so I might end up upgrading.
For our “Cloud” app we use JUCE7 (for compatibility with Windows 7) and for NEXUS5 we use JUCE8. Both render the “Inter” fonts just fine, using very similar methods to get the binary data, etc. like the OP.
Sorry for the delay all.
So, it turns out the issue was just the Inter font I was using. I downloaded a different one and that seemed to do the trick.
Thanks for the help