Edit

kc3-lang/ftgl/src/FTGLExtrdFont.cpp

Branch :

  • Show log

    Commit

  • Author : henry
    Date : 2003-06-03 02:44:14
    Hash : af2e589c
    Message : Better variable name

  • src/FTGLExtrdFont.cpp
  • #include    "FTGLExtrdFont.h"
    #include    "FTExtrdGlyph.h"
    
    
    FTGLExtrdFont::FTGLExtrdFont( const char* fontname)
    :   FTFont( fontname),
        depth( 0.0f)
    {}
    
    
    FTGLExtrdFont::FTGLExtrdFont( const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
    :   FTFont( pBufferBytes, bufferSizeInBytes),
        depth( 0.0f)
    {}
    
    
    FTGLExtrdFont::~FTGLExtrdFont()
    {}
    
    
    FTGlyph* FTGLExtrdFont::MakeGlyph( unsigned int glyphIndex)
    {
        FT_Glyph* ftGlyph = face.Glyph( glyphIndex, FT_LOAD_NO_HINTING);
    
        if( ftGlyph)
        {
            FTExtrdGlyph* tempGlyph = new FTExtrdGlyph( *ftGlyph, depth);
            return tempGlyph;
        }
    
        err = face.Error();
        return NULL;
    }