Edit

kc3-lang/ftgl/src/FTGLPolygonFont.cpp

Branch :

  • Show log

    Commit

  • Author : sammy
    Date : 2008-04-04 12:43:38
    Hash : 7c358859
    Message : * Generate a config.h file instead of passing all defines in the compiler command line. * "make install" now properly installs the includes, the documentation and the .pc file. * Generate a shared library.

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