Bug 220 : wrong textWidth with OpenGL
Last modified: 2005-11-30 22:03



Assigned To:

Attachment Type Created Size Actions
screenshot of the difference image/gif 2005-11-24 03:03 20.09 KB

Description:   Opened: 2005-11-22 16:44
I opened a typography experiment I did with v.92 and OpenGL and running on
v.95 the text that was distributed using textWidth appears with a wrong
horizontal alignment so I presumed it was for a bug in its implementing.
Please let me know if you need more information.
Additional Comment #1 From fry 2005-11-23 12:10
if you could post a short sketch that shows the problem and explains what should be
happening instead, that would be helpful. text sizing was broken slightly for a while, but i
thought things had been ironed out by 0095.

to post a sketch, use "archive sketch" under the tools menu and then "create a new
attachment" on this page.
Additional Comment #2 From gabon 2005-11-24 03:03
screenshot of the difference
Additional Comment #3 From gabon 2005-11-24 03:08
In the screenshot I attached you can see at the top the text with v.92 and
in the bottom the text with v.95.
I tried to make a simpler example for the bug and came up (not sure if
fortunately) that it isn't related to textWidth, or at least not only to
that. In fact in a simple example it worked properly. What I should do
then, is to go deeper on my application and understand what is changing
between the two versions. Just give me some days ;)
Additional Comment #4 From gabon 2005-11-30 13:30
I found the problem. Of course it was my fault. In my project I had in the
setup handler a "textAlign(CENTER);" and I didn't change anymore the
alignment after that. In v.92 that command didn't affect the alignement of
the text written in other part of the application after that. In v.95 and
v.97 yes. Since my application works correctly without a center allignment
it was my code to be bugged. So, if the idea is that a textAlign in the
setup could affect all other alignement everywhere 97 works fine!

Hope this helps, chr
Additional Comment #5 From fry 2005-11-30 22:03
yep, once you set textAlign() it's not gonna magically set it to something
else without telling you. just like fill() and stroke() and any other
settings of that nature.