Edit

kc3-lang/ftgl/src/FTGLExtrdFont.cpp

Branch :

  • Show log

    Commit

  • Author : henry
    Date : 2001-12-10 21:30:58
    Hash : 3715b637
    Message : Added include for mmgr

  • src/FTGLExtrdFont.cpp
  • #include	"FTGLExtrdFont.h"
    #include	"FTExtrdGlyph.h"
    #ifdef FTGL_DEBUG
    	#include "mmgr.h"
    #endif
    
    
    FTGLExtrdFont::FTGLExtrdFont()
    :	depth(0)
    {}
    
    
    FTGLExtrdFont::~FTGLExtrdFont()
    {}
    
    
    FTGlyph* FTGLExtrdFont::MakeGlyph( unsigned int g)
    {
    	FT_Glyph* ftGlyph = face.Glyph( g, FT_LOAD_DEFAULT);
    
    	if( ftGlyph)
    	{
    		FTExtrdGlyph* tempGlyph = new FTExtrdGlyph( *ftGlyph, depth);
    		return tempGlyph;
    	}
    
    	err = face.Error();
    	return NULL;
    }