Removed the pixels per em function because no one is using them.
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 41
diff --git a/test/FTSize-Test.cpp b/test/FTSize-Test.cpp
index 3e7d6a0..f203783 100755
--- a/test/FTSize-Test.cpp
+++ b/test/FTSize-Test.cpp
@@ -17,7 +17,6 @@ class FTSizeTest : public CppUnit::TestCase
CPPUNIT_TEST_SUITE( FTSizeTest);
CPPUNIT_TEST( testConstructor);
CPPUNIT_TEST( testSetCharSize);
- CPPUNIT_TEST( testPixelsPerEMSquare);
CPPUNIT_TEST_SUITE_END();
public:
@@ -39,9 +38,6 @@ class FTSizeTest : public CppUnit::TestCase
CPPUNIT_ASSERT_DOUBLES_EQUAL( 0, size.Underline(), 0.01);
- CPPUNIT_ASSERT( size.XPixelsPerEm() == 0);
- CPPUNIT_ASSERT( size.YPixelsPerEm() == 0);
-
}
@@ -66,18 +62,6 @@ class FTSizeTest : public CppUnit::TestCase
tearDownFreetype();
}
- void testPixelsPerEMSquare()
- {
- setUpFreetype();
-
- FTSize size;
-
- CPPUNIT_ASSERT( size.CharSize( &face, FONT_POINT_SIZE, RESOLUTION, RESOLUTION));
- CPPUNIT_ASSERT( size.Error() == 0);
-
- CPPUNIT_ASSERT_DOUBLES_EQUAL( 72, size.XPixelsPerEm(), 0.01);
- CPPUNIT_ASSERT_DOUBLES_EQUAL( 72, size.YPixelsPerEm(), 0.01);
- }
void setUp()
{}