Edit

kc3-lang/ftgl/include/FTPixmapGlyph.h

Branch :

  • Show log

    Commit

  • Author : henry
    Date : 2001-07-30 02:24:24
    Hash : 4cd99a38
    Message : Rewrote the way the raster positon is set. The position is now kept in an FT_Vector called pen and pas into the glyphs, rather than the glyph calculating it's on raster position.

  • include/FTPixmapGlyph.h
  • #ifndef		__FTPixmapGlyph__
    #define		__FTPixmapGlyph__
    
    #include <ft2build.h>
    #include FT_FREETYPE_H
    #include FT_GLYPH_H
    
    #include	"FTGlyph.h"
    
    
    class FTPixmapGlyph : public FTGlyph
    {
    	public:
    		// methods
    		FTPixmapGlyph( FT_Glyph glyph, int glyphIndex);
    		virtual ~FTPixmapGlyph();
    		virtual float Render( FT_Vector& v);
    		
    		// attributes
    
    	private:
    		// methods
    		
    		// attributes
    		int destWidth;
    		int destHeight;
    		
    		int numGreys;
    
    		unsigned char* data;
    		
    };
    
    
    #endif	//	__FTPixmapGlyph__