need to be tweaks but it seems to work on my linux box. I haven't touched any of the other build systems so those will need to be done. We probably don't need all of this stuff but I figured better to add a little too much then to little. Kent
36 lines
659 B
C++
36 lines
659 B
C++
#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_GlyphSlot ftGlyph = face.Glyph( glyphIndex, FT_LOAD_NO_HINTING);
|
|
|
|
if( ftGlyph)
|
|
{
|
|
FTExtrdGlyph* tempGlyph = new FTExtrdGlyph( ftGlyph, depth);
|
|
return tempGlyph;
|
|
}
|
|
|
|
err = face.Error();
|
|
return NULL;
|
|
}
|
|
|
|
|