Hash :
bcbf8c43
Author :
Date :
2001-08-16T06:15:07
#include "FTGLPolygonFont.h"
#include "FTGlyphContainer.h"
#include "FTGL.h"
#include "FTPolyGlyph.h"
FTGLPolygonFont::FTGLPolygonFont()
: tempGlyph(0)
{}
FTGLPolygonFont::~FTGLPolygonFont()
{}
bool FTGLPolygonFont::MakeGlyphList()
{
FT_Face* ftFace = face.Face();
numGlyphs = 127; // FIXME hack
for( int n = 0; n < numGlyphs; ++n)
{
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);
tempGlyph = new FTPolyGlyph( ftGlyph, n);
glyphList->Add( tempGlyph);
}
return !err;
}