Main Page | File List | File Members

FTGLPolygonFont.cpp

Go to the documentation of this file.
00001 #include "FTGLPolygonFont.h" 00002 #include "FTPolyGlyph.h" 00003 00004 00005 FTGLPolygonFont::FTGLPolygonFont( const char* fontname) 00006 : FTFont( fontname) 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); 00026 return tempGlyph; 00027 } 00028 00029 err = face.Error(); 00030 return NULL; 00031 } 00032 00033

Generated on Tue Jul 27 22:31:15 2004 for FTGL by doxygen 1.3.7