Commit 69776d872dfe7183c04f7714f13bc1337aadb55f

henry 2003-06-03T04:02:05

Now takes an FTGL face not a Freetype fac

diff --git a/test/FTCharmap-Test.cpp b/test/FTCharmap-Test.cpp
index 042b8a7..8ce41fd 100755
--- a/test/FTCharmap-Test.cpp
+++ b/test/FTCharmap-Test.cpp
@@ -10,6 +10,7 @@
 
 
 #include "Fontdefs.h"
+#include "FTFace.h"
 #include "FTCharmap.h"
 
 
@@ -86,23 +87,18 @@ class FTCharmapTest : public CppUnit::TestCase
         }
         
     private:
-        FT_Library   library;
-        FT_Face      face;
-        
+        FTFace*      face;
         FTCharmap* charmap;
 
         void setUpFreetype()
         {
-            FT_Error error = FT_Init_FreeType( &library);
-            assert(!error);
-            error = FT_New_Face( library, GOOD_FONT_FILE, 0, &face);
-            assert(!error);
+            face = new FTFace( GOOD_FONT_FILE);
+            CPPUNIT_ASSERT( !face->Error());
         }
         
         void tearDownFreetype()
         {
-            FT_Done_Face( face);
-            FT_Done_FreeType( library);
+            delete face;
         }
 };