| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/text/deprecated/font.h>

Public Member Functions | |
| ImageGlyph (FT_GlyphSlot *slot, double resolution) | |
| Creates a memory bitmap from the freetype glyph. | |
| int | width () const |
| Returns the width of the contained image. | |
| int | height () const |
| Returns the height of the contained image. | |
| int | pitch () const |
| Returns the pitch of the contained image. | |
| MemoryImage * | getAlphaImage () const |
| Returns an image containing the glyph. | |
| ImageTexture2D * | getTexture () const |
| Returns a texture with the glyph as image. | |
| ImageTexture2D * | getHaloedTexture (double haloeSize) const |
| Like getTexture, but the glyph will have a haloe around it. | |
| unsigned char * | getBitmapImage () const |
| Returns a bitwise stored image (one bit = one pixel). | |
| Vector | getLowerLeftCorner () const |
| Returns the difference between the origin and the lower left corner of the glyph (in pixels). | |
| virtual Bounds | boundingBox () const |
| VRS_TYPEINFO (ImageGlyph, Glyph) | |
| VRS::ImageGlyph::ImageGlyph | ( | FT_GlyphSlot * | slot, | |
| double | resolution | |||
| ) |
Creates a memory bitmap from the freetype glyph.
| int VRS::ImageGlyph::width | ( | ) | const |
Returns the width of the contained image.
| int VRS::ImageGlyph::height | ( | ) | const |
Returns the height of the contained image.
| int VRS::ImageGlyph::pitch | ( | ) | const |
Returns the pitch of the contained image.
| MemoryImage* VRS::ImageGlyph::getAlphaImage | ( | ) | const |
Returns an image containing the glyph.
Returns 0, if the image is empty (e.g. space) as all other image related get methods do.
| ImageTexture2D* VRS::ImageGlyph::getTexture | ( | ) | const |
Returns a texture with the glyph as image.
| ImageTexture2D* VRS::ImageGlyph::getHaloedTexture | ( | double | haloeSize | ) | const |
Like getTexture, but the glyph will have a haloe around it.
The haloe range is specified in texture pixels (square with 2*haloeSize edge length)
| unsigned char* VRS::ImageGlyph::getBitmapImage | ( | ) | const |
Returns a bitwise stored image (one bit = one pixel).
| Vector VRS::ImageGlyph::getLowerLeftCorner | ( | ) | const |
Returns the difference between the origin and the lower left corner of the glyph (in pixels).
Consider the glyph is a p. The origin (0,0,0) obviously differs from the lower left corner of bitmap to render.
| virtual Bounds VRS::ImageGlyph::boundingBox | ( | ) | const [virtual] |
Implements VRS::Glyph.
| VRS::ImageGlyph::VRS_TYPEINFO | ( | ImageGlyph | , | |
| Glyph | ||||
| ) |