Public Methods |
| Polygonal (const char *filename, float point_size=12, FT_UInt resolution=100) |
| Polygonal (FT_Face face, float point_size=12, FT_UInt resolution=100) |
virtual | ~Polygonal (void) |
void | setTessellationSteps (unsigned int tessellation_steps) |
unsigned int | tessellationSteps (void) const |
void | setCharacterRotationX (GLfloat character_rotation_x) |
void | setCharacterRotationY (GLfloat character_rotation_y) |
void | setCharacterRotationZ (GLfloat character_rotation_z) |
GLfloat | characterRotationX (void) const |
GLfloat | characterRotationY (void) const |
GLfloat | characterRotationZ (void) const |
void | setColorTess (ColorTess *color_tess) |
ColorTess* | colorTess (void) const |
void | setTextureTess (TextureTess *texture_tess) |
TextureTess* | textureTess (void) const |
double | height (void) const |
BBox | measure (unsigned char c) |
BBox | measure (const QChar c) |
BBox | measure (const char *s) |
BBox | measure (const QString &format, double number) |
Protected Types |
typedef std::list< VertexInfo* > | VertexInfoList |
| Normally, we will consider a list of vertices.
|
typedef VertexInfoList::const_iterator | VILCI |
| A convenience definition of the iterator over the list of vertices.
|
typedef VertexInfoList::iterator | VILI |
| A convenience definition of the iterator over the list of vertices.
|
Protected Methods |
void | clearCaches (void) |
| The different styles have different caching needs (well, really only the texture style currently has more than the display list cache).
|
Protected Attributes |
struct { |
bool active_ |
GLfloat x_ |
GLfloat y_ |
GLfloat z_ |
} | character_rotation_ |
| Angle of rotation of characters relative to text orientation.
|
unsigned int | tessellation_steps_ |
| The tessellation of curves is pretty crude; regardless of length, use the same number of increments (and as near as I can tell, this is more than sufficient unless the glyph takes up the whole screen).
|
double | delta_ |
| When curves are tessellated, we use the forward difference algorithm from Foley and van Dam for parametric curves (pg. 511 of 2nd Ed. in C). So, the step size, delta, is in the parametric variable which is always on the interval [0,1]. Therefore, delta = 1/tessellation_steps.
|
double | delta2_ |
| When curves are tessellated, we use the forward difference algorithm from Foley and van Dam for parametric curves (pg. 511 of 2nd Ed. in C). So, the step size, delta, is in the parametric variable which is always on the interval [0,1]. Therefore, delta = 1/tessellation_steps.
|
double | delta3_ |
| When curves are tessellated, we use the forward difference algorithm from Foley and van Dam for parametric curves (pg. 511 of 2nd Ed. in C). So, the step size, delta, is in the parametric variable which is always on the interval [0,1]. Therefore, delta = 1/tessellation_steps.
|
double | vector_scale_ |
| For vector rendition modes, FreeType is allowed to generate the lines and arcs at the original face definition resolution. To get to the proper glyph size, the vertices are scaled before they're passed to the GLU tessellation routines.
|
FT_Outline_Funcs | interface_ |
| Callbacks for FreeType glyph decomposition into outlines.
|
VertexInfo | last_vertex_ |
VertexInfoList | vertices_ |
bool | contour_open_ |
| As GLU tessellation proceeds, new contours open with every call to moveTo.
|
ColorTess* | color_tess_ |
| The user can provide a ColorTess object which computes a color for each tesselated vertex.
|
TextureTess* | texture_tess_ |
| The user can provide a TextureTess object which computes texture coordinates for each tesselated vertex.
|
Static Protected Attributes |
const unsigned int | DEFAULT_TESSELLATION_STEPS = 4 |
| Default number of steps to break TrueType and Type1 arcs into. (Note: this looks good to me, anyway).
|
In the polygonal styles, the detailed geometric outlines of the glyphs are extracted from the font file and rendered as polygons.