Edit

kc3-lang/ftgl/src/FTGLExtrdFont.cpp

Branch :

  • Show log

    Commit

  • Author : henry
    Date : 2002-06-20 08:22:06
    Hash : 9013e3ec
    Message : Changes for VTK Removed tabs Removed mmgr Optimisations for loading pixel based fonts Minor changes

  • src/FTGLExtrdFont.cpp
  • #include    "FTGLExtrdFont.h"
    #include    "FTExtrdGlyph.h"
    
    
    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;
    }