#include <font.h>
Inheritance diagram for glttf::BasicFont< T >:

Public Types | |
| typedef T | GlyphType |
| The glyph type of this font. | |
| typedef T::Parameter | Parameter |
| The parameter type of this font. | |
Public Member Functions | |
| BasicFont (const std::string &filename, unsigned int size=32, Font::FontStyle style=Font::PLAIN, unsigned long faceIndex=Font::DEFAULT_FACE_INDEX) | |
| Create a new font from file. | |
| ~BasicFont () | |
| Destructor. | |
| void | setupState () |
| Set up rendering state. | |
| void | cleanupState () |
| Clean up rendering state. | |
| void | setParameter (const Parameter ¶m) |
| Set glyph creation parameter. | |
| const Parameter & | getParameter () const |
| Get glyph creation parameter. | |
Protected Member Functions | |
| Glyph * | makeGlyph (FT_GlyphSlot glyph) |
| Create a new glyph. | |
| T | The glyph type of this font |
| glttf::BasicFont< T >::BasicFont | ( | const std::string & | filename, | |
| unsigned int | size = 32, |
|||
| Font::FontStyle | style = Font::PLAIN, |
|||
| unsigned long | faceIndex = Font::DEFAULT_FACE_INDEX | |||
| ) | [inline] |
Create a new font from file.
| filename | The file name to load | |
| size | the point size of the font | |
| style | the style of the font | |
| faceIndex | the index of the font face in the font file |
| std::runtime_error | if the display list can't be compiled or on tesselation errors |
| void glttf::BasicFont< T >::setupState | ( | ) | [inline, virtual] |
Set up rendering state.
Calls Font::setupState() and GlyphType::setupState().
Reimplemented from glttf::Font.
| void glttf::BasicFont< T >::cleanupState | ( | ) | [inline, virtual] |
Clean up rendering state.
Calls Font::cleanupState() and GlyphType::setupState.
Reimplemented from glttf::Font.
| void glttf::BasicFont< T >::setParameter | ( | const Parameter & | param | ) | [inline] |
Set glyph creation parameter.
Destroys cached glyphs
| param | the new parameter to use for glyph creation |
| std::logic_error | if rendering state is set |
| const Parameter& glttf::BasicFont< T >::getParameter | ( | ) | const [inline] |
Get glyph creation parameter.
| Glyph* glttf::BasicFont< T >::makeGlyph | ( | FT_GlyphSlot | glyph | ) | [inline, protected, virtual] |
Create a new glyph.
Calls Policy::makeGlyph(glyph).
| glyph | the FreeType glyph which the glyph is built from |
Glyph object. The caller is responsible for destroying the new object. | std::runtime_error | on errors |
Implements glttf::Font.
1.5.1