I’m having a strange issue with rendering UTF8 special characters.
They do render correctly, but when I use certain ones, any character following a space is not drawn.
Just stumbled across this, and I see it in several places in the juce forum. I think a string literal is missing here.
g.drawFittedText(CharPointer_UTF8("ø Test")...
instead use
g.drawFittedText(CharPointer_UTF8(u8"ø Test")...
I don’t know if that was the original error, but it would be nice if the CharPointer_UTF8constructor would “jassert” if it includes invalid characters.
Unfortunately even u8"ø Test" won’t work in all cases, as u8 only refers to the execution character set not the source character set. Generally speaking I don’t recommend using any non-ASCII literals in source code. More information here Technical Deep Dive: Unicode Literals - JUCE.