From b0d19b0b66c52fa7214a88d8498c229bf188ed28 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 2 Nov 2005 10:57:42 +0000 Subject: [PATCH] From Farshid Lashkari, "I need the ability to check for a font file without actually loading the font object. I've modified font.h/cpp of osgText so that it exports the findFontFile function." --- include/osgText/Font | 2 +- src/osgText/Font.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/osgText/Font b/include/osgText/Font index 485410e90..d2a2bffaa 100644 --- a/include/osgText/Font +++ b/include/osgText/Font @@ -57,7 +57,7 @@ enum KerningType * the file will be searched again in the OS specific directories. */ extern OSGTEXT_EXPORT Font* readFontFile(const std::string& filename); - +extern OSGTEXT_EXPORT std::string findFontFile(const std::string& str); /** Pure virtual base class for fonts. * Concrete implementation are the DefaultFont found in src/osgText/DefaultFont.cpp diff --git a/src/osgText/Font.cpp b/src/osgText/Font.cpp index 873cdbed9..ea64814ad 100644 --- a/src/osgText/Font.cpp +++ b/src/osgText/Font.cpp @@ -27,7 +27,7 @@ using namespace osgText; using namespace std; -std::string findFontFile(const std::string& str) +std::string osgText::findFontFile(const std::string& str) { // try looking in OSGFILEPATH etc first for fonts. std::string filename = osgDB::findDataFile(str);