[JUCE8] AttributedString problem with non-latin characters (used to work in JUCE 7)

Hi, it seems that drawing an AttributedString with non-latin strings doesn’t work anymore on JUCE8. It used to work fine on JUCE7. See code snippet and screenshots below.

void paint(juce::Graphics& g) override
{
        AttributedString text { SystemStats::getJUCEVersion() + String(CharPointer_UTF8 (", JAPANESE: \"日本語\", EMOJI: \"😀\"")) };
        text.setColour(Colours::white);
        text.draw(g, getLocalBounds().toFloat());
}

Update: works fine on macOS14 / iOS17, so it seems to be related to Sequoia and iOS18

Thank you for reporting. A fix is now out on develop

1 Like