From aa5d172f99b91103f5f70e4e60a67ca0e96253ad Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 30 Oct 2002 12:56:55 +0000 Subject: [PATCH] Updated osgText .osg support so that it handles text via the osgDB::Outpur::wrapString() method. --- src/osgPlugins/osgText/IO_Font.cpp | 2 +- src/osgPlugins/osgText/IO_Text.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }