FTGLOutlineFont.h

Go to the documentation of this file.
00001 #ifndef     __FTGLOutlineFont__
00002 #define     __FTGLOutlineFont__
00003 
00004 
00005 #include "FTFont.h"
00006 #include "FTGL.h"
00007 
00008 class FTGlyph;
00009 
00010 
00011 /**
00012  * FTGLOutlineFont is a specialisation of the FTFont class for handling
00013  * Vector Outline fonts
00014  *
00015  * @see     FTFont
00016  */
00017 class FTGL_EXPORT FTGLOutlineFont : public FTFont
00018 {
00019     public:
00020         /**
00021          * Open and read a font file. Sets Error flag.
00022          *
00023          * @param fontFilePath  font file path.
00024          */
00025         FTGLOutlineFont( const char* fontFilePath);
00026         
00027         /**
00028          * Open and read a font from a buffer in memory. Sets Error flag.
00029          *
00030          * @param pBufferBytes  the in-memory buffer
00031          * @param bufferSizeInBytes  the length of the buffer in bytes
00032          */
00033         FTGLOutlineFont( const unsigned char *pBufferBytes, size_t bufferSizeInBytes);
00034         
00035         /**
00036          * Destructor
00037          */
00038         ~FTGLOutlineFont();
00039         
00040         /**
00041          * Prepare for rendering
00042          */
00043         virtual void PreRender();
00044 
00045         /**
00046          * Cleanup after rendering
00047          */
00048         virtual void PostRender();
00049 
00050     private:
00051         /**
00052          * Construct a FTOutlineGlyph.
00053          *
00054          * @param g The glyph index NOT the char code.
00055          * @return  An FTOutlineGlyph or <code>null</code> on failure.
00056          */
00057         inline virtual FTGlyph* MakeGlyph( unsigned int g);
00058         
00059 };
00060 #endif // __FTGLOutlineFont__

Generated on Tue Jul 5 14:16:15 2011 for ROOT_528-00b_version by  doxygen 1.5.1