Edit

kc3-lang/ftgl/include/FTSize.h

Branch :

  • Show log

    Commit

  • Author : henry
    Date : 2001-08-19 22:40:43
    Hash : be5b608f
    Message : Changed the size stuff to use floats rather than ints. Global height and width is now calculated using the bbox

  • include/FTSize.h
  • #ifndef		__FTSize__
    #define		__FTSize__
    
    #include <ft2build.h>
    #include FT_FREETYPE_H
    
    #include "FTGL.h"
    
    
    class	FTSize
    {
    	public:
    		// methods
    		FTSize();
    		virtual ~FTSize();
    		bool CharSize( FT_Face* face, int point_size, int x_resolution, int y_resolution );
    		float Ascender() const;
    		float Descender() const;
    		float Height() const;
    		float Width() const;
    		float Underline() const;
    
    		FT_Error Error() const { return err; }
    		
    		// attributes
    		
    	private:
    		// methods
    		
    		// attributes
    		FT_Face* ftFace;
    		FT_Size   ftSize;
    		int	size;
    		
    		FT_Error err;
    		
    };
    
    #endif	//	__FTSize__