I see what he’s talking about - I’ve run into this issue before. A GitHub project is perhaps overkill to illustrate.
I’ve done a test using my first name (Joël) as the string, and basically the String class is trying to interpret the ‘ë’ as ASCII - which is out of range.
Here’s an example that asserts:
g.drawText ("Joël", 0, 0, 300, 100, juce::Justification::centredLeft, false);
Here’s a version of my example that works perfectly - take notice of the conversion (for some unknown reason, UTF8 didn’t work correctly here - so I didn’t use it):
g.drawText (juce::CharPointer_UTF16 (L"Joël"), 0, 0, 300, 100, juce::Justification::centredLeft, false);