Hash :
8b9739ee
Author :
Date :
2008-04-11T16:24:56
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 38 39 40 41 42 43 44 45 46 47 48 49
#include "config.h"
#include "FTInternals.h"
#include "FTGLPolygonFont.h"
#include "FTPolyGlyph.h"
FTGLPolygonFont::FTGLPolygonFont( const char* fontFilePath)
: FTFont( fontFilePath)
{}
FTGLPolygonFont::FTGLPolygonFont( const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
: FTFont( pBufferBytes, bufferSizeInBytes)
{}
FTGLPolygonFont::~FTGLPolygonFont()
{}
FTGlyph* FTGLPolygonFont::MakeGlyph( unsigned int g)
{
FT_GlyphSlot ftGlyph = face.Glyph( g, FT_LOAD_NO_HINTING);
if( ftGlyph)
{
FTPolyGlyph* tempGlyph = new FTPolyGlyph( ftGlyph, useDisplayLists);
return tempGlyph;
}
err = face.Error();
return NULL;
}
#ifdef __cplusplus
extern "C" {
namespace C {
#endif
extern "C" FTGLfont* ftglPolygonFontMake(const char *fontname)
{
FTGLfont *ftgl = createFTFont(Polygon, fontname);
return ftgl;
}
#ifdef __cplusplus
}
}
#endif