Logo Search packages:      
Sourcecode: blender version File versions

FTGLPolygonFont.cpp

#include    "FTGLPolygonFont.h"
#include    "FTPolyGlyph.h"


00005 FTGLPolygonFont::FTGLPolygonFont( const char* fontname)
:   FTFont( fontname)
{}


00010 FTGLPolygonFont::FTGLPolygonFont( const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
:   FTFont( pBufferBytes, bufferSizeInBytes)
{}


00015 FTGLPolygonFont::~FTGLPolygonFont()
{}


00019 FTGlyph* FTGLPolygonFont::MakeGlyph( unsigned int g)
{
    FT_GlyphSlot ftGlyph = face.Glyph( g, FT_LOAD_NO_HINTING);

    if( ftGlyph)
    {
        FTPolyGlyph* tempGlyph = new FTPolyGlyph( ftGlyph);
        return tempGlyph;
    }

    err = face.Error();
    return NULL;
}



Generated by  Doxygen 1.6.0   Back to index