Commit d3199cbcc8ce90dd615d3a448ec04340dfb47e8c

henry 2004-08-19T05:43:24

FaceSize now sets the error value.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/FTFont.cpp b/src/FTFont.cpp
index c06d883..d0fa34b 100755
--- a/src/FTFont.cpp
+++ b/src/FTFont.cpp
@@ -67,8 +67,9 @@ bool FTFont::Attach( const unsigned char *pBufferBytes, size_t bufferSizeInBytes
 bool FTFont::FaceSize( const unsigned int size, const unsigned int res )
 {
     charSize = face.Size( size, res);
+    err = face.Error();
     
-    if( face.Error())
+    if( err != 0)
     {
         return false;
     }