Updated osgText .osg support so that it handles text via the osgDB::Outpur::wrapString() method.

This commit is contained in:
Robert Osfield 2002-10-30 12:56:55 +00:00
parent 8a9fce09d8
commit aa5d172f99
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ bool Font_writeLocalData(const osg::Object &obj, osgDB::Output &fw)
fw.indent() << "parameters ";
fw << myobj.getPointSize() << " " << myobj.getTextureSize() << " ";
fw << "\"" << myobj.getFontName() << "\"" << std::endl;
fw << fw.wrapString(myobj.getFontName()) << std::endl;
return true;
}

View File

@ -120,7 +120,7 @@ bool Text_writeLocalData(const osg::Object &obj, osgDB::Output &fw)
fw.writeObject(*myobj.getFont());
// text
fw.indent() << "text \"" << myobj.getText() << "\"" << std::endl;
fw.indent() << "text " << fw.wrapString(myobj.getText()) << std::endl;
return true;
}