Hi everyone,
After updating to JUCE 8, we noticed that drawing certain text with the Graphics object using drawText or drawFittedText flips/mangles the text around certain characters. Here’s an example of what I mean:
Here a TextButton’s text is being set using setButtonText, and the LookAndFeel’s drawButtonText method is just a slightly modified version of LookAndFeel_V2::drawButtonText that calls g.drawFittedText to draw the text. As you can see, the “date_time” string got flipped halfway around the “_”.
After some digging around in the JUCE 8 code, I was able to determine that this is coming from the new ShapedText class. Not sure where exactly though.
As a temporary workaround, I’m using AttributedString and TextLayout to draw the text and that is working fine. Only thing that is missing with that is ellipses, which is required in certain scenarios.
Any help for fixing this is greatly appreciated. Thanks in advance!


