Commit fb9adfb5300174dfd3647004cd8c8fc2d4816d5e

henry 2002-11-29T08:21:02

Improved error handling

diff --git a/include/FTFace.h b/include/FTFace.h
index 7bc2d0d..e30f037 100755
--- a/include/FTFace.h
+++ b/include/FTFace.h
@@ -87,7 +87,7 @@ class FTGL_EXPORT FTFace
          * @return              <code>true</code> if charmap was valid
          *                      and set correctly
          */
-        bool CharMap( FT_Encoding encoding) const;
+        bool CharMap( FT_Encoding encoding);
 
         /**
          *  Get the glyph index of the input character.
diff --git a/src/FTFace.cpp b/src/FTFace.cpp
index 47caf06..b6ae66b 100755
--- a/src/FTFace.cpp
+++ b/src/FTFace.cpp
@@ -92,9 +92,11 @@ FTSize& FTFace::Size( const unsigned int size, const unsigned int res)
 }
 
 
-bool FTFace::CharMap( FT_Encoding encoding) const
+bool FTFace::CharMap( FT_Encoding encoding)
 {
-    return charMap->CharMap( encoding);
+    bool result = charMap->CharMap( encoding);
+    err = charMap->Error();
+    return result;
 }