Moved handling of character aspect ratio into osgText::Style.

This commit is contained in:
Robert Osfield
2010-09-29 12:45:35 +00:00
parent 9bde24d3d2
commit dab1c79127
6 changed files with 40 additions and 29 deletions

View File

@@ -86,6 +86,7 @@ osg::Group* create3DText(const osg::Vec3& center,float radius)
osg::ref_ptr<osgText::Bevel> bevel = new osgText::Bevel;
bevel->roundedBevel2(0.25);
style->setBevel(bevel.get());
style->setWidthRatio(0.4f);
osgText::Text3D* text7 = new osgText::Text3D;
text7->setFont("fonts/times.ttf");