Commit ea2efa4e487a19200c785dbc6f319e1001a0fd55

henry 2001-08-07T21:25:12

Added Error() stuff

diff --git a/include/FTLibrary.h b/include/FTLibrary.h
index d88dc01..5c4c0ff 100755
--- a/include/FTLibrary.h
+++ b/include/FTLibrary.h
@@ -16,6 +16,8 @@ class	FTLibrary
 		static FTLibrary& Instance();
 		FT_Library*	GetLibrary() const { return lib;}
 		
+		virtual FT_Error Error() const { return err;}
+		
 		virtual  ~FTLibrary();
 		
 		// attributes
@@ -31,6 +33,8 @@ class	FTLibrary
 		FT_Library*	lib;
 //		FTC_Manager* manager;      /* the cache manager               */
 
+		FT_Error err;
+
 		
 };
 #endif	//	__FTLibrary__
diff --git a/src/FTLibrary.cpp b/src/FTLibrary.cpp
index ccdc25c..64e575a 100755
--- a/src/FTLibrary.cpp
+++ b/src/FTLibrary.cpp
@@ -36,14 +36,15 @@ FTLibrary::FTLibrary()
 }
 
 
-bool	FTLibrary::Init()
+bool FTLibrary::Init()
 {
 	if( lib != 0 )
 		return true;
 
 	lib = new FT_Library;
-
-	if( FT_Init_FreeType( lib)) // false = no error
+	
+	err = FT_Init_FreeType( lib);
+	if( err)
 	{
 		delete lib;
 		lib= 0;