FTGLExtrdFont.cpp
Go to the documentation of this file.00001 #include "FTGLExtrdFont.h"
00002 #include "FTExtrdGlyph.h"
00003
00004
00005 FTGLExtrdFont::FTGLExtrdFont( const char* fontname)
00006 : FTFont( fontname),
00007 depth( 0.0f)
00008 {}
00009
00010
00011 FTGLExtrdFont::FTGLExtrdFont( const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
00012 : FTFont( pBufferBytes, bufferSizeInBytes),
00013 depth( 0.0f)
00014 {}
00015
00016
00017 FTGLExtrdFont::~FTGLExtrdFont()
00018 {}
00019
00020
00021 FTGlyph* FTGLExtrdFont::MakeGlyph( unsigned int glyphIndex)
00022 {
00023 FT_GlyphSlot ftGlyph = face.Glyph( glyphIndex, FT_LOAD_NO_HINTING);
00024
00025 if( ftGlyph)
00026 {
00027 FTExtrdGlyph* tempGlyph = new FTExtrdGlyph( ftGlyph, depth);
00028 return tempGlyph;
00029 }
00030
00031 err = face.Error();
00032 return NULL;
00033 }
00034
00035
Generated on Mon May 17 16:04:57 2004 for FTGL by
1.3.7