Commit 0932c517e5de235c29b5226ad44d719bd063a874

henry 2001-08-08T01:32:02

render() does not draw'invalid' glyphs

diff --git a/src/FTPolyGlyph.cpp b/src/FTPolyGlyph.cpp
index 7b4bb15..8e36105 100644
--- a/src/FTPolyGlyph.cpp
+++ b/src/FTPolyGlyph.cpp
@@ -146,9 +146,12 @@ FTPolyGlyph::~FTPolyGlyph()
 
 float FTPolyGlyph::Render( const FT_Vector& pen)
 {
-	glTranslatef( pen.x, pen.y, 0);
-		glCallList( glList);	
-	glTranslatef( -pen.x, -pen.y, 0);
+	if( glList)
+	{
+		glTranslatef( pen.x, pen.y, 0);
+			glCallList( glList);	
+		glTranslatef( -pen.x, -pen.y, 0);
+	}
 	
 	return advance;
 }
diff --git a/src/FTVectorGlyph.cpp b/src/FTVectorGlyph.cpp
index cca2ea1..da2f92f 100755
--- a/src/FTVectorGlyph.cpp
+++ b/src/FTVectorGlyph.cpp
@@ -71,9 +71,12 @@ FTVectorGlyph::~FTVectorGlyph()
 
 float FTVectorGlyph::Render( const FT_Vector& pen)
 {
-	glTranslatef( pen.x, pen.y, 0);
-		glCallList( glList);
-	glTranslatef( -pen.x, -pen.y, 0);
+	if( glList)
+	{
+		glTranslatef( pen.x, pen.y, 0);
+			glCallList( glList);
+		glTranslatef( -pen.x, -pen.y, 0);
+	}
 	
 	return advance;
 }