Commit 14a240e6a69c3eb74d1dc8dc90fe66e0aad7a036

henry 2004-10-07T02:09:48

Changed testKerning to use a font with a kerning table.

diff --git a/test/FTFace-Test.cpp b/test/FTFace-Test.cpp
index 7ac98ad..44e4122 100755
--- a/test/FTFace-Test.cpp
+++ b/test/FTFace-Test.cpp
@@ -17,7 +17,6 @@ class FTFaceTest : public CppUnit::TestCase
         CPPUNIT_TEST( testGlyphCount);
         CPPUNIT_TEST( testSetFontSize);
         CPPUNIT_TEST( testGetCharmapList);
-        CPPUNIT_TEST( testUnitPerEMSquare);
         CPPUNIT_TEST( testKerning);
     CPPUNIT_TEST_SUITE_END();
 
@@ -96,20 +95,15 @@ class FTFaceTest : public CppUnit::TestCase
         }
         
         
-        void testUnitPerEMSquare()
-        {
-            CPPUNIT_ASSERT_DOUBLES_EQUAL( 1000, testFace->UnitsPerEM(), 0);
-        }
-
-        
         void testKerning()
         {
-            FTPoint kerningVector = testFace->KernAdvance( 'A', 'W');
+            FTFace test(ARIAL_FONT_FILE);
+            FTPoint kerningVector = test.KernAdvance( 'A', 'A');
             CPPUNIT_ASSERT( kerningVector.x == 0);
             CPPUNIT_ASSERT( kerningVector.y == 0);
             CPPUNIT_ASSERT( kerningVector.z == 0);
         
-            kerningVector = testFace->KernAdvance( 0x6FB3, 0x9580);
+            kerningVector = test.KernAdvance( 0x6FB3, 0x9580);
             CPPUNIT_ASSERT( kerningVector.x == 0);
             CPPUNIT_ASSERT( kerningVector.y == 0);
             CPPUNIT_ASSERT( kerningVector.z == 0);