Updated osgText .osg support so that it handles text via the osgDB::Outpur::wrapString() method.
This commit is contained in:
parent
8a9fce09d8
commit
aa5d172f99
@ -31,7 +31,7 @@ bool Font_writeLocalData(const osg::Object &obj, osgDB::Output &fw)
|
|||||||
|
|
||||||
fw.indent() << "parameters ";
|
fw.indent() << "parameters ";
|
||||||
fw << myobj.getPointSize() << " " << myobj.getTextureSize() << " ";
|
fw << myobj.getPointSize() << " " << myobj.getTextureSize() << " ";
|
||||||
fw << "\"" << myobj.getFontName() << "\"" << std::endl;
|
fw << fw.wrapString(myobj.getFontName()) << std::endl;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@ bool Text_writeLocalData(const osg::Object &obj, osgDB::Output &fw)
|
|||||||
fw.writeObject(*myobj.getFont());
|
fw.writeObject(*myobj.getFont());
|
||||||
|
|
||||||
// text
|
// text
|
||||||
fw.indent() << "text \"" << myobj.getText() << "\"" << std::endl;
|
fw.indent() << "text " << fw.wrapString(myobj.getText()) << std::endl;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user