Added support for handling of wordwrap in osgText::Text, so that whole words

are cut in two, but rather moved completely to the next line.
This commit is contained in:
Robert Osfield
2003-09-15 21:43:54 +00:00
parent 79b87c933e
commit a2f9222753
4 changed files with 439 additions and 108 deletions

View File

@@ -48,11 +48,11 @@ void SlideShowConstructor::setPresentationAspectRatio(const std::string& str)
void SlideShowConstructor::createPresentation()
{
_titleHeight = _slideHeight*0.08f;
_titleHeight = _slideHeight*0.06f;
_titleWidth = _slideWidth*0.8f;
_titleOrigin = _slideOrigin + osg::Vec3(_slideWidth*0.5f,0.0f,_slideHeight*0.98f-_titleHeight);
_textHeight = _slideHeight*0.05f;
_textHeight = _slideHeight*0.04f;
_textWidth = _slideWidth*0.8f;
_textOrigin = _slideOrigin + osg::Vec3(_slideWidth*0.1f,0.0f,_titleOrigin.z()-2*_textHeight);