Hi Xiangfei, On 24 July 2013 05:55, Xiangfei Cui <[email protected]> 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() method that returns an osg::BoundingBox that encompasses the whole text item, would this be sufficient? What are you trying to with the pixel length? Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

