Removed the numGlyphs hack
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
diff --git a/src/FTGLBitmapFont.cpp b/src/FTGLBitmapFont.cpp
index f47d3a7..82116fe 100755
--- a/src/FTGLBitmapFont.cpp
+++ b/src/FTGLBitmapFont.cpp
@@ -18,7 +18,6 @@ FTGLBitmapFont::~FTGLBitmapFont()
bool FTGLBitmapFont::MakeGlyphList()
{
// if( preCache)
-// numGlyphs = 256; // FIXME hack
for( unsigned int c = 0; c < numGlyphs; ++c)
{
FT_Glyph ftGlyph = face.Glyph( c, FT_LOAD_DEFAULT);
diff --git a/src/FTGLOutlineFont.cpp b/src/FTGLOutlineFont.cpp
index 7e3f782..bc05bf2 100755
--- a/src/FTGLOutlineFont.cpp
+++ b/src/FTGLOutlineFont.cpp
@@ -17,8 +17,6 @@ FTGLOutlineFont::~FTGLOutlineFont()
bool FTGLOutlineFont::MakeGlyphList()
{
- numGlyphs = 127; // FIXME hack
-
for( unsigned int n = 0; n < numGlyphs; ++n)
{
FT_Glyph ftGlyph = face.Glyph( n, FT_LOAD_NO_HINTING | FT_LOAD_NO_BITMAP);
diff --git a/src/FTGLPixmapFont.cpp b/src/FTGLPixmapFont.cpp
index f6eb46b..2880c0c 100755
--- a/src/FTGLPixmapFont.cpp
+++ b/src/FTGLPixmapFont.cpp
@@ -18,7 +18,6 @@ FTGLPixmapFont::~FTGLPixmapFont()
bool FTGLPixmapFont::MakeGlyphList()
{
// if( preCache)
-// numGlyphs = 256; // FIXME hack
for( unsigned int c = 0; c < numGlyphs; ++c)
{
FT_Glyph ftGlyph = face.Glyph( c, FT_LOAD_DEFAULT);
diff --git a/src/FTGLPolygonFont.cpp b/src/FTGLPolygonFont.cpp
index 1548049..de574f2 100755
--- a/src/FTGLPolygonFont.cpp
+++ b/src/FTGLPolygonFont.cpp
@@ -16,8 +16,6 @@ FTGLPolygonFont::~FTGLPolygonFont()
bool FTGLPolygonFont::MakeGlyphList()
{
- numGlyphs = 127; // FIXME hack
-
for( unsigned int n = 0; n < numGlyphs; ++n)
{
FT_Glyph ftGlyph = face.Glyph( n, FT_LOAD_NO_HINTING | FT_LOAD_NO_BITMAP);