I’m using textWidth() to fit texts horizontaly in a fixed width.
Doing so works great, I check for the textWidth() of my text in size 100, then I calculate in which size it would perfectly fit my fixed width and I draw it accordingly.
But whith some apparently random chains the textWidth() is not accurate.
For exemple “TOROTOTO” is ok, but not “TARATATA” (the “TA” chain is what causes the problem).
I guess it may be a misinterpretation of the font I use, because it works fineif I don’t use any font.
but as anyone an idea about it ?
Or maybe another way of checking the width of a text which would be more accurate ?