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

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

2013-08-01 Thread Robert Osfield
Hi Xiangfei, On 24 July 2013 05:55, Xiangfei Cui sophist...@gmail.com 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 has a getBound()

[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