From 141f8a70d734af95dd43127519b7b430f13e6ec6 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 11 Sep 2005 19:08:41 +0000 Subject: [PATCH] From Farshid Lashkari, append "\fonts" to end of windows font search path. --- src/osgText/Font.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osgText/Font.cpp b/src/osgText/Font.cpp index 05c468b85..bc7cf3bc3 100644 --- a/src/osgText/Font.cpp +++ b/src/osgText/Font.cpp @@ -46,7 +46,9 @@ std::string findFontFile(const std::string& str) char *ptr; if ((ptr = getenv( "windir" ))) { - s_FontFilePath.push_back(ptr); + std::string winFontPath = ptr; + winFontPath += "\\fonts"; + s_FontFilePath.push_back(winFontPath); } #else osgDB::convertStringPathIntoFilePathList(