Changed the mode in FT_load_Glyph() Changed the blend function in render()
diff --git a/src/FTGLOutlineFont.cpp b/src/FTGLOutlineFont.cpp
index 0831849..736ebcb 100755
--- a/src/FTGLOutlineFont.cpp
+++ b/src/FTGLOutlineFont.cpp
@@ -6,7 +6,6 @@
#include "FTVectorGlyph.h"
-
FTGLOutlineFont::FTGLOutlineFont()
: tempGlyph(0)
{}
@@ -25,7 +24,7 @@ bool FTGLOutlineFont::MakeGlyphList()
for( int n = 0; n < numGlyphs; ++n)
{
- err = FT_Load_Glyph( *ftFace, n, FT_LOAD_DEFAULT);
+ err = FT_Load_Glyph( *ftFace, n, FT_LOAD_NO_HINTING | FT_LOAD_NO_BITMAP); // FT_LOAD_DEFAULT... FT_LOAD_NO_SCALE
FT_Glyph ftGlyph;
err = FT_Get_Glyph( (*ftFace)->glyph, &ftGlyph);
@@ -45,7 +44,7 @@ void FTGLOutlineFont::render( const char* string)
glEnable( GL_LINE_SMOOTH);
glHint( GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
glEnable(GL_BLEND);
- glBlendFunc( GL_SRC_ALPHA, GL_ONE); // GL_ONE_MINUS_SRC_ALPHA
+ glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); // GL_ONE
FTFont::render( string);