I’m using Graphics::drawFittedText to draw the text of a label that contains newline characters.
The text is submitted correctly to GlyphArrangement::addFittedText but in the output that is drawn there are some characters missing after each newline character.
When the the following text is submitted to GlyphArrangement::addFittedText:
then the result that is drawn is:
Obviously I’m expecting the output:
I’ve tried to use different ways to get a correct newline:
But the result is always the same. For each newline in the string one additional character at the beginning of the next line is truncated.
Any idea what could be wrong?