Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

FTSize.h

Go to the documentation of this file.
00001 #ifndef     __FTSize__
00002 #define     __FTSize__
00003 
00004 
00005 #include <ft2build.h>
00006 #include FT_FREETYPE_H
00007 
00008 #include "FTGL.h"
00009 
00010 
00011 
00018 class FTGL_EXPORT FTSize
00019 {
00020     public:
00024          FTSize();
00025         
00029         virtual ~FTSize();
00030         
00043         bool CharSize( FT_Face* face, unsigned int point_size, unsigned int x_resolution, unsigned int y_resolution);
00044         
00050         unsigned int CharSize() const;
00051         
00057         float Ascender() const;
00058         
00064         float Descender() const;
00065         
00076         float Height() const;
00077         
00088         float Width() const;
00089         
00095         float Underline() const;
00096 
00097         unsigned int XPixelsPerEm() const;
00098 
00099         unsigned int YPixelsPerEm() const;
00100 
00106         FT_Error Error() const { return err; }
00107         
00108     private:
00112         FT_Face* ftFace;
00113         
00117         FT_Size ftSize;
00118         
00122         unsigned int size;
00123         
00127         FT_Error err;
00128         
00129 };
00130 
00131 #endif  //  __FTSize__
00132 

Generated on Mon Aug 16 18:47:19 2004 for FTGL by doxygen 1.3.6