This seems to be similar to previous issue I have seen (Weird behaviour with in-memory fonts and OSX Layouts) but I am trying to move from JUCE 4.2.1 to JUCE 5.3.1 and I am getting off-by-one characters in the test of popup boxes.
How to reproduce:
Open DialogsDemo
Add roboto ttf to the project (so it goes in BinaryData)
Add a look and feel class
class LnF : public LookAndFeel_V4
{
public:
LnF()
{
roboto = Typeface::createSystemTypefaceFor(BinaryData::fonts__roboto_ttf, BinaryData::fonts__roboto_ttfSize);
setDefaultSansSerifTypeface(roboto);
}
private:
Typeface::Ptr roboto;
} feel;
Set look and feel as default Desktop::getInstance().setDefaultLookAndFeel(&feel);
Open App and make JUCE style (not system style) popups.
You will notice that the characters are a mess and they seem to be off by one character.
I have just tried on my Macbook and I cannot reproduce it. I will try on the Mac Pro when I get into the office in the morning. Weird. Both machines are 10.13.4 with latest release XCode and SDK
Sorry for bumping this topic, but i maintaining a legacy software build with an older juce release (4).
And the weird thing there is a coincidence, an ascii-character offset of minus two (not plus) but on windows and in conjunction with AttributedString, not reproducible here, but on a customer pc with windows 10.
It doesn’t seem to be a general issue, only on that one particular customer pc.
No custom or in-memory fonts, just the system font. If anybody has the slightest idea what this could be, this would be interesting for me.