Changed the cord data from floats to doubles...trying to debug the glutess stuff in FTPolyGlyph!!
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
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;
};