Commit 007ca6b5abeff1e9ec2b42aecf7bde3f1fdf6ff6

henry 2001-08-05T22:15:50

Made render() arg const. Minor tidy ups

diff --git a/include/FTPolyGlyph.h b/include/FTPolyGlyph.h
index b254ce2..36f951a 100644
--- a/include/FTPolyGlyph.h
+++ b/include/FTPolyGlyph.h
@@ -15,7 +15,7 @@ class	FTPolyGlyph : public FTGlyph
 		// methods
 		FTPolyGlyph( FT_Glyph glyph, int glyphIndex);
 		virtual ~FTPolyGlyph();
-		virtual float Render( FT_Vector& pen);
+		virtual float Render( const FT_Vector& pen);
 		
 		// attributes
 	
@@ -27,8 +27,9 @@ class	FTPolyGlyph : public FTGlyph
 		FTVectoriser* vectoriser;
 		int numPoints;
 		int numContours;
-		int * contourLength;
-		float* data;
+		int contourFlag; 
+		int* contourLength;
+		double* data;
 		int glList;
 	
 };
diff --git a/src/FTPolyGlyph.cpp b/src/FTPolyGlyph.cpp
index 2290a00..39d8c7b 100644
--- a/src/FTPolyGlyph.cpp
+++ b/src/FTPolyGlyph.cpp
@@ -58,7 +58,8 @@ FTPolyGlyph::FTPolyGlyph( FT_Glyph glyph, int gi)
 	numPoints(0),
 	numContours(0),
 	contourLength(0),
-	data(0)
+	data(0),
+	glList(0)
 {
 	if( glyph->format == ft_glyph_format_outline)
 	{
@@ -142,10 +143,11 @@ void FTPolyGlyph::Tesselate()
 FTPolyGlyph::~FTPolyGlyph()
 {
 	delete [] data;
+	delete [] contourLength;
 }
 
 
-float FTPolyGlyph::Render( FT_Vector& pen)
+float FTPolyGlyph::Render( const FT_Vector& pen)
 {
 	glTranslatef( pen.x, pen.y, 0);
 		glCallList( glList);