diff --git a/src/osgPlugins/osgText/IO_Font.cpp b/src/osgPlugins/osgText/IO_Font.cpp index ceed0db35..42cd53c60 100644 --- a/src/osgPlugins/osgText/IO_Font.cpp +++ b/src/osgPlugins/osgText/IO_Font.cpp @@ -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; } diff --git a/src/osgPlugins/osgText/IO_Text.cpp b/src/osgPlugins/osgText/IO_Text.cpp index 2b32b6b92..3c88c1e9a 100644 --- a/src/osgPlugins/osgText/IO_Text.cpp +++ b/src/osgPlugins/osgText/IO_Text.cpp @@ -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; }