Fresco/Berlin/modules/Drawing/libArt FTFont.cc,1.29,1.30
Stefan Seefeld <[email protected]>
| Newsgroups | gmane.comp.video.fresco.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvs/fresco/Fresco/Berlin/modules/Drawing/libArt
In directory purcel:/tmp/cvs-serv10272/Berlin/modules/Drawing/libArt
Modified Files:
FTFont.cc
Log Message:
fix http://issues.fresco.org/bug188
Index: FTFont.cc
===================================================================
RCS file: /cvs/fresco/Fresco/Berlin/modules/Drawing/libArt/FTFont.cc,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- FTFont.cc 5 Jan 2003 16:21:30 -0000 1.29
+++ FTFont.cc 19 Feb 2003 16:53:43 -0000 1.30
@@ -115,6 +115,9 @@
}
}
Logger::log(Logger::text) << "completed scaning font directories" << std::endl;
+ Logger::log(Logger::text) << _faces.size() << " fonts found" << std::endl;
+ if (!_faces.size())
+ throw std::runtime_error("no fonts found. Please check your font path !");
char *env = getenv("BERLIN_FONT_CHOOSER");
Babylon::String tmpFam, tmpStyle;
if (env && chooseFaceInteractively(_faces, env, tmpFam, tmpStyle))