Commit f73f63a9a25be609efcfc033a9552632c0b9a6ec

henry 2002-11-27T07:46:25

Changes to the glyph loading flags

diff --git a/src/FTGLBitmapFont.cpp b/src/FTGLBitmapFont.cpp
index 70ff266..018bd0e 100755
--- a/src/FTGLBitmapFont.cpp
+++ b/src/FTGLBitmapFont.cpp
@@ -17,8 +17,6 @@ FTGlyph* FTGLBitmapFont::MakeGlyph( unsigned int g)
     if( ftGlyph)
     {
         FTBitmapGlyph* tempGlyph = new FTBitmapGlyph( *ftGlyph);
-//                FT_Done_Glyph( *ftGlyph );
-
         return tempGlyph;
     }
 
diff --git a/src/FTGLExtrdFont.cpp b/src/FTGLExtrdFont.cpp
index b897b30..12c92bc 100644
--- a/src/FTGLExtrdFont.cpp
+++ b/src/FTGLExtrdFont.cpp
@@ -13,7 +13,7 @@ FTGLExtrdFont::~FTGLExtrdFont()
 
 FTGlyph* FTGLExtrdFont::MakeGlyph( unsigned int g)
 {
-    FT_Glyph* ftGlyph = face.Glyph( g, FT_LOAD_DEFAULT);
+    FT_Glyph* ftGlyph = face.Glyph( g, FT_LOAD_NO_HINTING);
 
     if( ftGlyph)
     {
diff --git a/src/FTGLOutlineFont.cpp b/src/FTGLOutlineFont.cpp
index 4db44ba..71e5718 100755
--- a/src/FTGLOutlineFont.cpp
+++ b/src/FTGLOutlineFont.cpp
@@ -12,7 +12,7 @@ FTGLOutlineFont::~FTGLOutlineFont()
 
 FTGlyph* FTGLOutlineFont::MakeGlyph( unsigned int g)
 {
-    FT_Glyph* ftGlyph = face.Glyph( g, FT_LOAD_DEFAULT);
+    FT_Glyph* ftGlyph = face.Glyph( g, FT_LOAD_NO_HINTING);
 
     if( ftGlyph)
     {
diff --git a/src/FTGLPixmapFont.cpp b/src/FTGLPixmapFont.cpp
index 071bc48..0658b2b 100755
--- a/src/FTGLPixmapFont.cpp
+++ b/src/FTGLPixmapFont.cpp
@@ -12,7 +12,7 @@ FTGLPixmapFont::~FTGLPixmapFont()
 
 FTGlyph* FTGLPixmapFont::MakeGlyph( unsigned int g)
 {
-    FT_Glyph* ftGlyph = face.Glyph( g, FT_LOAD_DEFAULT);
+    FT_Glyph* ftGlyph = face.Glyph( g, FT_LOAD_NO_HINTING);
 
     if( ftGlyph)
     {
diff --git a/src/FTGLPolygonFont.cpp b/src/FTGLPolygonFont.cpp
index 4fc8f28..9ebd286 100755
--- a/src/FTGLPolygonFont.cpp
+++ b/src/FTGLPolygonFont.cpp
@@ -12,7 +12,7 @@ FTGLPolygonFont::~FTGLPolygonFont()
 
 FTGlyph* FTGLPolygonFont::MakeGlyph( unsigned int g)
 {
-    FT_Glyph* ftGlyph = face.Glyph( g, FT_LOAD_DEFAULT);
+    FT_Glyph* ftGlyph = face.Glyph( g, FT_LOAD_NO_HINTING);
 
     if( ftGlyph)
     {
diff --git a/src/FTGLTextureFont.cpp b/src/FTGLTextureFont.cpp
index 1a2c223..31bfe8a 100755
--- a/src/FTGLTextureFont.cpp
+++ b/src/FTGLTextureFont.cpp
@@ -77,7 +77,7 @@ FTGlyph* FTGLTextureFont::MakeGlyph( unsigned int g)
                                                         xOffset, yOffset, textureWidth, textureHeight);
         
         // FIXME ceiling
-        xOffset += tempGlyph->BBox().x2 - tempGlyph->BBox().x1 + padding;
+        xOffset += static_cast<int>( tempGlyph->BBox().upperX - tempGlyph->BBox().lowerX + padding);
         
         --remGlyphs;
         return tempGlyph;