I am on the latest tip from today and have issues with some asian characters not being drawn correctly when using AttributedString.
The character I need to draw has the UTF8 byte sequence F0 A9 AA 97. I can see in the debugger that the byte sequence shows up correctly in the data member of my juce::String. Then I do basically the following:
juce::AttributedString aS(textToDraw); aS.setFont(Font("Arial Unicode MS", 24, Font::bold)); aS.draw(g, Rectangle<float>(x, y, width, height);
All I get is a square character as a kind of replacement character.
x, y, width, height are set to correct values, and all other texts I tried to draw this way did show up correctly in the GUI, even all Asian test strings that I got, except the mentioned one above. I am wondering why this is, because all other applications I tried have no problem to show the correct asian glyph with that UTF8 encoding (eg. Notepad++ or some audio editing software I tried).
I have Direct Write support enabled.
Do you have any idea what is going wrong here? Do you need more information to reproduce?