FTGLPolygonFont.cxx

Go to the documentation of this file.
00001 #include    "FTGLPolygonFont.h"
00002 #include    "FTPolyGlyph.h"
00003 
00004 
00005 FTGLPolygonFont::FTGLPolygonFont( const char* fontFilePath)
00006 :   FTFont( fontFilePath)
00007 {}
00008 
00009 
00010 FTGLPolygonFont::FTGLPolygonFont( const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
00011 :   FTFont( pBufferBytes, bufferSizeInBytes)
00012 {}
00013 
00014 
00015 FTGLPolygonFont::~FTGLPolygonFont()
00016 {}
00017 
00018 
00019 FTGlyph* FTGLPolygonFont::MakeGlyph( unsigned int g)
00020 {
00021     FT_GlyphSlot ftGlyph = face.Glyph( g, FT_LOAD_NO_HINTING);
00022 
00023     if( ftGlyph)
00024     {
00025         FTPolyGlyph* tempGlyph = new FTPolyGlyph( ftGlyph, useDisplayLists);
00026         return tempGlyph;
00027     }
00028 
00029     err = face.Error();
00030     return NULL;
00031 }
00032 
00033 

Generated on Tue Jul 5 14:16:16 2011 for ROOT_528-00b_version by  doxygen 1.5.1