Logo Search packages:      
Sourcecode: blender version File versions  Download package

FTGLExtrdFont.cpp

#include    "FTGLExtrdFont.h"
#include    "FTExtrdGlyph.h"


00005 FTGLExtrdFont::FTGLExtrdFont( const char* fontname)
:   FTFont( fontname),
    depth( 0.0f)
{}


00011 FTGLExtrdFont::FTGLExtrdFont( const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
:   FTFont( pBufferBytes, bufferSizeInBytes),
    depth( 0.0f)
{}


00017 FTGLExtrdFont::~FTGLExtrdFont()
{}


00021 FTGlyph* FTGLExtrdFont::MakeGlyph( unsigned int glyphIndex)
{
    FT_GlyphSlot ftGlyph = face.Glyph( glyphIndex, FT_LOAD_NO_HINTING);

    if( ftGlyph)
    {
        FTExtrdGlyph* tempGlyph = new FTExtrdGlyph( ftGlyph, depth);
        return tempGlyph;
    }

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



Generated by  Doxygen 1.6.0   Back to index