Now takes an FTGL face not a Freetype fac
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
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;
}
};