Edit

kc3-lang/ftgl/src/FTGLPolygonFont.cpp

Branch :

  • Show log

    Commit

  • Author : henry
    Date : 2004-10-08 11:37:28
    Hash : 3d3a4852
    Message : Changed a couple of variable names.

  • src/FTGLPolygonFont.cpp
  • #include    "FTGLPolygonFont.h"
    #include    "FTPolyGlyph.h"
    
    
    FTGLPolygonFont::FTGLPolygonFont( const char* fontFilePath)
    :   FTFont( fontFilePath)
    {}
    
    
    FTGLPolygonFont::FTGLPolygonFont( const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
    :   FTFont( pBufferBytes, bufferSizeInBytes)
    {}
    
    
    FTGLPolygonFont::~FTGLPolygonFont()
    {}
    
    
    FTGlyph* FTGLPolygonFont::MakeGlyph( unsigned int g)
    {
        FT_GlyphSlot ftGlyph = face.Glyph( g, FT_LOAD_NO_HINTING);
    
        if( ftGlyph)
        {
            FTPolyGlyph* tempGlyph = new FTPolyGlyph( ftGlyph, useDisplayLists);
            return tempGlyph;
        }
    
        err = face.Error();
        return NULL;
    }