Added more flexible testing of Text3D

This commit is contained in:
Robert Osfield
2011-01-11 11:39:50 +00:00
parent 74cf034404
commit 32a4c0da2e
2 changed files with 43 additions and 6 deletions

View File

@@ -112,7 +112,7 @@ void Layout::layout(TextNode& text) const
{
osg::Vec3 local_scale( size );
technique->addCharacter(pos, local_scale, glyph, style);
pos += osg::Vec3(size.x()*glyph->getHorizontalWidth(), 0.0f ,0.0f);
pos += osg::Vec3(size.x()*glyph->getWidth(), 0.0f ,0.0f);
}
}