HI Andy,
What version of the OSG are you using?
Robert.
On 12/1/06, Andrew Somerville <[EMAIL PROTECTED]> wrote:
(for some reason this email didnt work the first time... if the first
one eventually comes through, I apologize for the duplicate)
Hey all,
I think I may have discovered a bug in the osgText::Text line wrapping.
When Text wraps while the alignment is set to CENTER and the Layout is
LEFT_TO_RIGHT, Text continues at the wrong position after a wrapped line
and furthermore shifts the center position on preceding lines. I have
an idea where the problem might be in the osgText/Text.cpp code, but I
wanted to check here to see if I had missed something before pushing it
to the developer list.
Has anyone seen anything like this?
The following sequence shows the behavior in ASCII art(monspace font).
The Alignment is CENTER, the Layout is LEFT_TO_RIGHT.
The pipe characters are meant to show the correct text box boundary:
First line (correct):
| |
the
First line (correct):
| |
thequickbrown
Wrap to second line (incorrect):
| |
thequickbrown
fox
Wrap to second line (incorrect):
| |
thequickbrown
foxjumpedover
Wrap to third line (incorrect):
| |
thequickbrown
foxjumpedover
t
Wrap to third line (incorrect):
| |
thequickbrown
foxjumpedover
thelazydog
If no one is aware of something I missed, Ill push this to the dev list
sometime tomorrow.
Regards,
Andy Somerville
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/