Commit 609d33edda9cdde0c77b1e4328d690a410db24f4

henry 2003-09-29T04:54:22

Added a test for broken glyph but freetype is broken so it doesn't work.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/test/FTBBox-Test.cpp b/test/FTBBox-Test.cpp
index d03f2f9..88ac1da 100755
--- a/test/FTBBox-Test.cpp
+++ b/test/FTBBox-Test.cpp
@@ -44,6 +44,15 @@ class FTBBoxTest : public CppUnit::TestCase
         {    
             setUpFreetype();
 
+//            FTBBox boundingBox1( (FT_GlyphSlot)(0));
+
+//            CPPUNIT_ASSERT( boundingBox1.lowerX == 0.0f);
+//            CPPUNIT_ASSERT( boundingBox1.lowerY == 0.0f);
+//            CPPUNIT_ASSERT( boundingBox1.lowerZ == 0.0f);
+//            CPPUNIT_ASSERT( boundingBox1.upperX == 0.0f);
+//            CPPUNIT_ASSERT( boundingBox1.upperY == 0.0f);
+//            CPPUNIT_ASSERT( boundingBox1.upperZ == 0.0f);
+
             FTBBox boundingBox2( face->glyph);
 
             CPPUNIT_ASSERT_DOUBLES_EQUAL(   2, boundingBox2.lowerX, 0.01);