#include <glyph.h>
Inheritance diagram for glttf::Glyph:
Public Member Functions | |
virtual | ~Glyph () |
Destructor. | |
void | draw () const |
Draw this glyph. | |
float | getHeight () const |
Get the height of this glyph. | |
float | getWidth () const |
Get the width of this glyph. | |
float | getBearingX () const |
Get the horizontal bearing of this glyph. | |
float | getBearingY () const |
Get the vertical bearing of this glyph. | |
float | getAdvanceX () const |
Get the horizontal advance of this glyph. | |
float | getAdvanceY () const |
Get the vertical advance of this glyph. | |
float | getMinX () const |
Get the minimum X value of this glyph's bounding box. | |
float | getMaxX () const |
Get the maximum X value of this glyph's bounding box. | |
float | getMinY () const |
Get the minimum Y value of this glyph's bounding box. | |
float | getMaxY () const |
Get the maximum Y value of this glyph's bounding box. | |
Protected Member Functions | |
Glyph (const FT_GlyphSlot glyph) | |
Create a new glyph. | |
GLuint | getDisplayList () |
Get the display list of this glyph. |
The Glyph class (and thus it's subclasses) can't be copied.
virtual glttf::Glyph::~Glyph | ( | ) | [virtual] |
Destructor.
Destroys the display list of this glyph.
glttf::Glyph::Glyph | ( | const FT_GlyphSlot | glyph | ) | [protected] |
Create a new glyph.
Cache glyph metrics and create a display list for drawing the glyph. The constructors of the Glyph
class' subclasses should compile the display list.
Strong exception safety. All subclasses of Glyph
should also practice strong exception safety.
glyph | the glyph which to create this Glyph from |
std::runtime_error | if opening the glyph fails or display list creation fails | |
std::logic_error | if glyph is NULL |
void glttf::Glyph::draw | ( | ) | const |
Draw this glyph.
Calls the internal display list.
float glttf::Glyph::getHeight | ( | ) | const |
Get the height of this glyph.
float glttf::Glyph::getWidth | ( | ) | const |
Get the width of this glyph.
float glttf::Glyph::getBearingX | ( | ) | const |
Get the horizontal bearing of this glyph.
float glttf::Glyph::getBearingY | ( | ) | const |
Get the vertical bearing of this glyph.
float glttf::Glyph::getAdvanceX | ( | ) | const |
Get the horizontal advance of this glyph.
float glttf::Glyph::getAdvanceY | ( | ) | const |
Get the vertical advance of this glyph.
float glttf::Glyph::getMinX | ( | ) | const |
Get the minimum X value of this glyph's bounding box.
float glttf::Glyph::getMaxX | ( | ) | const |
Get the maximum X value of this glyph's bounding box.
float glttf::Glyph::getMinY | ( | ) | const |
Get the minimum Y value of this glyph's bounding box.
float glttf::Glyph::getMaxY | ( | ) | const |
Get the maximum Y value of this glyph's bounding box.
GLuint glttf::Glyph::getDisplayList | ( | ) | [protected] |
Get the display list of this glyph.
Get the internal display list of this glyph.