Remove Font Table function.
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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
diff --git a/include/FTFace.h b/include/FTFace.h
index bb15768..393221c 100755
--- a/include/FTFace.h
+++ b/include/FTFace.h
@@ -67,10 +67,6 @@ class FTGL_EXPORT FTFace
FT_Face* Face() const { return ftFace;}
-
- void* FontTable( unsigned int tableName) const;
-
-
/**
* Sets the char size for the current face.
*
diff --git a/src/FTFace.cpp b/src/FTFace.cpp
index 88ee8bd..5b4a39f 100755
--- a/src/FTFace.cpp
+++ b/src/FTFace.cpp
@@ -82,13 +82,6 @@ void FTFace::Close()
}
-void* FTFace::FontTable( unsigned int tableName) const
-{
-// return FT_Get_Sfnt_Table( *ftFace, tableName);
- return 0;
-}
-
-
const FTSize& FTFace::Size( const unsigned int size, const unsigned int res)
{
charSize.CharSize( ftFace, size, res, res);
diff --git a/test/FTFace-Test.cpp b/test/FTFace-Test.cpp
index 8e42c10..88dc0be 100755
--- a/test/FTFace-Test.cpp
+++ b/test/FTFace-Test.cpp
@@ -14,7 +14,6 @@ class FTFaceTest : public CppUnit::TestCase
CPPUNIT_TEST( testOpenFaceFromMemory);
CPPUNIT_TEST( testAttachFile);
CPPUNIT_TEST( testAttachMemoryData);
- CPPUNIT_TEST( testGetFontTable);
CPPUNIT_TEST( testGlyphCount);
CPPUNIT_TEST( testSetFontSize);
CPPUNIT_TEST( testUnitPerEMSquare);
@@ -73,13 +72,6 @@ class FTFaceTest : public CppUnit::TestCase
}
- void testGetFontTable()
- {
- CPPUNIT_ASSERT( !testFace->FontTable( 'xxxx'));
- CPPUNIT_ASSERT( testFace->FontTable( 'hmtx'));
- }
-
-
void testGlyphCount()
{
CPPUNIT_ASSERT( testFace->GlyphCount() == 14099);