Re: [osg-users] How to get the pixel length of a string

2013-09-12 Thread Xiangfei Cui
robertosfield wrote: Hi Xiangfei, On 24 July 2013 05:55, Xiangfei Cui wrote: I have a question. I create a osgText::Text and set the CharacterSizeMode to SCREEN_COORDS. How can I get the pixel length of a string ? There isn't a specific function for this. The Text drawable

[osg-users] Text with transparent background

2013-07-31 Thread Xiangfei Cui
Hi, There are two osg::Drawables. One is a filled red polygon, the other is a white Text on the polygon. I wish as to the Text's background is transparent so I can see red background, but the result is wrong. as to the figure: Thank you! Cheers, Xiangfei -- Read this topic

[osg-users] How to get the pixel length of a string

2013-07-31 Thread Xiangfei Cui
Hi, I have a question. I create a osgText::Text and set the CharacterSizeMode to SCREEN_COORDS. How can I get the pixel length of a string ? Thank you! Cheers, Xiangfei -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=55400#55400