Commit 277f82245a723cb94134b54f7867e3fcc9ae66ae

henry 2003-05-04T21:12:03

Changed for the new hinter in Freetype 2.1.4

diff --git a/test/FTFont-Test.cpp b/test/FTFont-Test.cpp
index 7d98107..f6b8ec6 100755
--- a/test/FTFont-Test.cpp
+++ b/test/FTFont-Test.cpp
@@ -70,7 +70,8 @@ class FTFontTest : public CppUnit::TestCase
         void testOpenFont()
         {
             TestFont badFont( BAD_FONT_FILE);
-            CPPUNIT_ASSERT( badFont.Error() == 1);        
+            // This is a different error # on Mac to other platforms      
+            CPPUNIT_ASSERT( badFont.Error() == 6);        
         
             TestFont goodFont( GOOD_FONT_FILE);
             CPPUNIT_ASSERT( goodFont.Error() == 0);        
@@ -105,6 +106,9 @@ class FTFontTest : public CppUnit::TestCase
         {
             CPPUNIT_ASSERT_DOUBLES_EQUAL( 0, testFont->Ascender(), 0.01);
             CPPUNIT_ASSERT_DOUBLES_EQUAL( 0, testFont->Descender(), 0.01);
+
+            float advance = testFont->Advance( GOOD_UNICODE_TEST_STRING);
+            CPPUNIT_ASSERT( advance == 0);
         
             CPPUNIT_ASSERT( testFont->FaceSize( FONT_POINT_SIZE));
             CPPUNIT_ASSERT( testFont->Error() == 0);
@@ -112,14 +116,14 @@ class FTFontTest : public CppUnit::TestCase
             CPPUNIT_ASSERT( testFont->FaceSize() == FONT_POINT_SIZE);
             
             CPPUNIT_ASSERT_DOUBLES_EQUAL(  52, testFont->Ascender(), 0.01);
-            CPPUNIT_ASSERT_DOUBLES_EQUAL( -14, testFont->Descender(), 0.01);
+            CPPUNIT_ASSERT_DOUBLES_EQUAL( -15, testFont->Descender(), 0.01);
         
             CPPUNIT_ASSERT( testFont->FaceSize( FONT_POINT_SIZE * 2));
             CPPUNIT_ASSERT( testFont->Error() == 0);
         
             CPPUNIT_ASSERT( testFont->FaceSize() == FONT_POINT_SIZE * 2);
         
-            CPPUNIT_ASSERT_DOUBLES_EQUAL( 103, testFont->Ascender(), 0.01);
+            CPPUNIT_ASSERT_DOUBLES_EQUAL( 104, testFont->Ascender(), 0.01);
             CPPUNIT_ASSERT_DOUBLES_EQUAL( -29, testFont->Descender(), 0.01);
         }