Commit 80fc3da914b8613a1a64861f0246fccc1097151f

henry 2004-10-03T21:11:09

CheckGlyph sets error flag

diff --git a/src/FTFont.cpp b/src/FTFont.cpp
index ee47f19..8923c77 100755
--- a/src/FTFont.cpp
+++ b/src/FTFont.cpp
@@ -6,6 +6,7 @@
 
 FTFont::FTFont( const char* fontname)
 :   face( fontname),
+    useDisplayLists(true),
     glyphList(0)
 {
     err = face.Error();
@@ -110,6 +111,11 @@ FT_Encoding* FTFont::CharMapList()
 }
 
 
+void FTFont::UseDisplayList( bool useList)
+{
+    useDisplayLists = useList;
+}
+
 float FTFont::Ascender() const
 {
     return charSize.Ascender();
@@ -282,6 +288,7 @@ bool FTFont::CheckGlyph( const unsigned int characterCode)
         if( NULL == tempGlyph)
         {
             return false;
+            err = 0x13;
         }
         glyphList->Add( tempGlyph, characterCode);
     }