#include <FTPixmapGlyph.h>
Inheritance diagram for FTPixmapGlyph:
Public Member Functions | |
FTPixmapGlyph (FT_GlyphSlot glyph) | |
virtual | ~FTPixmapGlyph () |
virtual const FTPoint & | Render (const FTPoint &pen) |
FTPixmapGlyph (FT_GlyphSlot glyph) | |
virtual | ~FTPixmapGlyph () |
virtual const FTPoint & | Render (const FTPoint &pen) |
Private Attributes | |
int | destWidth |
int | destHeight |
FTPoint | pos |
unsigned char * | data |
unsigned char * | data |
Definition at line 19 of file FTPixmapGlyph.h.
FTPixmapGlyph::FTPixmapGlyph | ( | FT_GlyphSlot | glyph | ) |
Constructor
glyph | The Freetype glyph to be processed |
Definition at line 3 of file FTPixmapGlyph.cxx.
References FT_GlyphSlotRec_::bitmap, FT_GlyphSlotRec_::bitmap_left, FT_GlyphSlotRec_::bitmap_top, FT_Bitmap_::buffer, data, destHeight, destWidth, FTGlyph::err, FT_GlyphSlotRec_::format, ft_glyph_format_bitmap, FT_Render_Glyph(), FT_RENDER_MODE_NORMAL, pos, FT_Bitmap_::rows, size_t, FT_Bitmap_::width, FTPoint::X(), x, y, and FTPoint::Y().
FTPixmapGlyph::~FTPixmapGlyph | ( | ) | [virtual] |
FTPixmapGlyph::FTPixmapGlyph | ( | FT_GlyphSlot | glyph | ) |
Constructor
glyph | The Freetype glyph to be processed |
virtual FTPixmapGlyph::~FTPixmapGlyph | ( | ) | [virtual] |
Destructor
Renders this glyph at the current pen position.
pen | The current pen position. |
Implements FTGlyph.
Definition at line 58 of file FTPixmapGlyph.cxx.
References FTGlyph::advance, data, destHeight, destWidth, GL_LUMINANCE_ALPHA, GL_UNPACK_ALIGNMENT, GL_UNPACK_ROW_LENGTH, GL_UNSIGNED_BYTE, glBitmap(), glDrawPixels(), glPixelStorei(), pos, FTPoint::X(), and FTPoint::Y().
Renders this glyph at the current pen position.
pen | The current pen position. |
Implements FTGlyph.
int FTPixmapGlyph::destWidth [private] |
The width of the glyph 'image'
Definition at line 48 of file FTPixmapGlyph.h.
Referenced by FTPixmapGlyph(), and Render().
int FTPixmapGlyph::destHeight [private] |
The height of the glyph 'image'
Definition at line 53 of file FTPixmapGlyph.h.
Referenced by FTPixmapGlyph(), and Render().
FTPoint FTPixmapGlyph::pos [private] |
Vector from the pen position to the topleft corner of the pixmap
Definition at line 58 of file FTPixmapGlyph.h.
Referenced by FTPixmapGlyph(), and Render().
unsigned char* FTPixmapGlyph::data [private] |
Pointer to the 'image' data
Definition at line 63 of file FTPixmapGlyph.h.
Referenced by FTPixmapGlyph(), Render(), and ~FTPixmapGlyph().
unsigned char* FTPixmapGlyph::data [private] |
Pointer to the 'image' data
Definition at line 63 of file FTPixmapGlyph.h.