diff --git a/src/osgPlugins/freetype/FreeTypeFont.cpp b/src/osgPlugins/freetype/FreeTypeFont.cpp index 30e5618b1..566b37b1d 100644 --- a/src/osgPlugins/freetype/FreeTypeFont.cpp +++ b/src/osgPlugins/freetype/FreeTypeFont.cpp @@ -72,12 +72,12 @@ void FreeTypeFont::setFontResolution(const osgText::FontResolution& fontSize) if ((unsigned int)(width+2*margin) > _facade->getTextureWidthHint() || (unsigned int)(width+2*margin) > _facade->getTextureHeightHint()) { - osg::notify(osg::WARN)<<"Warning: FreeTypeFont::setSize("<getTextureWidthHint()-2*margin; height = _facade->getTextureHeightHint()-2*margin; - osg::notify(osg::WARN)<<" sizes capped ("<bitmap.pixel_mode << std::endl; + OSG_WARN << "FT_Load_Char(...) returned bitmap with unknown pixel_mode " << glyphslot->bitmap.pixel_mode << std::endl; } @@ -224,7 +224,7 @@ osg::Vec2 FreeTypeFont::getKerning(const osgText::FontResolution& fontRes, unsig if (error) { - osg::notify(osg::WARN) << "FT_Get_Kerning(...) returned error code " <glyph->format != FT_GLYPH_FORMAT_OUTLINE) { - osg::notify(osg::NOTICE) << "FreeTypeFont3D: not a vector font" << std::endl; + OSG_NOTICE << "FreeTypeFont3D: not a vector font" << std::endl; return; } @@ -250,7 +250,7 @@ void FreeTypeFont3D::init() _error = FT_Outline_Decompose(&outline,&funcs,&char3d); if (_error) { - osg::notify(osg::NOTICE) << "FreeTypeFont3D: - outline decompose failed ..." << std::endl; + OSG_NOTICE << "FreeTypeFont3D: - outline decompose failed ..." << std::endl; return; } @@ -328,12 +328,12 @@ osgText::Font3D::Glyph3D * FreeTypeFont3D::getGlyph(unsigned int charcode) FT_Error error = FT_Load_Char( _face, charindex, FT_LOAD_DEFAULT|_flags ); if (error) { - osg::notify(osg::WARN) << "FT_Load_Char(...) error 0x"<glyph->format != FT_GLYPH_FORMAT_OUTLINE) { - osg::notify(osg::WARN) << "FreeTypeFont3D::getGlyph : not a vector font" << std::endl; + OSG_WARN << "FreeTypeFont3D::getGlyph : not a vector font" << std::endl; return 0; } @@ -353,7 +353,7 @@ osgText::Font3D::Glyph3D * FreeTypeFont3D::getGlyph(unsigned int charcode) FT_Error _error = FT_Outline_Decompose(&outline, &funcs, &char3d); if (_error) { - osg::notify(osg::WARN) << "FreeTypeFont3D::getGlyph : - outline decompose failed ..." << std::endl; + OSG_WARN << "FreeTypeFont3D::getGlyph : - outline decompose failed ..." << std::endl; return 0; } @@ -513,7 +513,7 @@ osg::Vec2 FreeTypeFont3D::getKerning(unsigned int leftcharcode,unsigned int righ if (error) { - osg::notify(osg::WARN) << "FT_Get_Kerning(...) returned error code " <(buffer), length); if (!fontstream || (static_cast(fontstream.gcount()) != length)) { - osg::notify(osg::WARN)<<" .... the font file could not be read from its stream"<