Robert Osfield writes: > Hi Preet, > > On 23 March 2012 03:28, Preet <[email protected]> wrote: >> I have a general follow up question about osgText. I'd like to draw >> the text along a path. I thought a good way to do this would have been >> to rotate the text character by character. So I'd create an osgText >> object for each character of text, and position/align them along the >> path... but this doesn't seem to preserve spacing between characters >> (this is expected, but I don't really know how to get around it), and >> the space character itself (" ") as an individual osgText object seems >> to have a width of zero (calculated with osg::Drawable::getBound()). > > osgText currently only supports positioning of text along a straight > line. There is an experimental TextNode replacement for osgText the > is written to allow one to customize the placement of each individual > glyph so this would probably be the best bet for you to look at. Have > a look for Jeremy Moles TextNode submission in the osg-submissions > archive.
If it helps, it is called osgPango (http://code.google.com/p/osgpango/). -- Alberto _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

