Changeset 11172
- Timestamp:
- 03/05/10 16:46:17 (3 years ago)
- Location:
- OpenSceneGraph/trunk/src
- Files:
-
- 3 added
- 2 modified
-
osgPlugins/CMakeLists.txt (modified) (1 diff)
-
osgPlugins/qfont (added)
-
osgPlugins/qfont/CMakeLists.txt (added)
-
osgPlugins/qfont/ReaderQFont.cpp (added)
-
osgText/Font.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/CMakeLists.txt
r10972 r11172 222 222 ENDIF() 223 223 224 IF (QT4_FOUND) 225 ADD_SUBDIRECTORY(qfont) 226 ENDIF() 227 224 228 IF(ZLIB_FOUND) 225 229 ADD_SUBDIRECTORY(zip) -
OpenSceneGraph/trunk/src/osgText/Font.cpp
r10959 r11172 84 84 85 85 // Not found, return empty string 86 osg::notify(osg:: WARN)<<"Warning: font file \""<<str<<"\" not found."<<std::endl;86 osg::notify(osg::INFO)<<"Warning: font file \""<<str<<"\" not found."<<std::endl; 87 87 return std::string(); 88 88 } … … 90 90 osgText::Font* osgText::readFontFile(const std::string& filename, const osgDB::ReaderWriter::Options* userOptions) 91 91 { 92 if (filename =="") return 0;92 if (filename.empty()) return 0; 93 93 94 94 std::string foundFile = findFontFile(filename); 95 if (foundFile.empty()) return 0; 95 if (foundFile.empty()) 96 foundFile = filename; 96 97 97 98 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(s_FontFileMutex); … … 150 151 osg::ref_ptr<Font> osgText::readRefFontFile(const std::string& filename, const osgDB::ReaderWriter::Options* userOptions) 151 152 { 152 if (filename =="") return 0;153 if (filename.empty()) return 0; 153 154 154 155 std::string foundFile = findFontFile(filename); 155 if (foundFile.empty()) return 0; 156 if (foundFile.empty()) 157 foundFile = filename; 156 158 157 159 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(s_FontFileMutex); … … 253 255 { 254 256 if (_implementation.valid()) return _implementation->getFileName(); 255 return "";257 return std::string(); 256 258 } 257 259
