Commit f2926cee3ddabc2dc00f05954b7777a8df097702

henry 2001-08-02T21:49:25

Changed the cord data from floats to doubles...trying to debug the glutess stuff in FTPolyGlyph!!

diff --git a/src/FTVectorGlyph.cpp b/src/FTVectorGlyph.cpp
index 3de78a4..98a35c0 100755
--- a/src/FTVectorGlyph.cpp
+++ b/src/FTVectorGlyph.cpp
@@ -30,7 +30,7 @@ FTVectorGlyph::FTVectorGlyph( FT_Glyph glyph, int gi)
 			}
 			
 			numPoints = vectoriser->points();
-			data = new float[ numPoints * 3];
+			data = new double[ numPoints * 3];
 			vectoriser->Output( data);
 			
 			advance = glyph->advance.x >> 16; // this is 6 in the freetype docs!!!!!!
@@ -50,7 +50,7 @@ FTVectorGlyph::FTVectorGlyph( FT_Glyph glyph, int gi)
  				glBegin( GL_LINE_LOOP);
  				for( int p = 0; p < ( contourLength[c]); ++p)
  				{
- 					glVertex2f( data[d], data[d + 1]);
+ 					glVertex2dv( data + d);
  					d += 3;
  				}
  				glEnd();
diff --git a/src/FTVectorGlyph.h b/src/FTVectorGlyph.h
index 381f957..88fe143 100755
--- a/src/FTVectorGlyph.h
+++ b/src/FTVectorGlyph.h
@@ -26,8 +26,8 @@ class	FTVectorGlyph : public FTGlyph
 		FTVectoriser* vectoriser;
 		int numPoints;
 		int numContours;
-		int * contourLength;
-		float* data;
+		int* contourLength;
+		double* data;
 		int glList;
 	
 };