Main Page   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members   Related Pages  

GlyphGeometry Struct Reference

Used to hold the geometry of individual glyphs. More...

List of all members.


Public Methods

 GlyphGeometry (const std::vector< MFVec2f > &contours, float advanceWidth, float advanceHeight) throw (std::bad_alloc)
 Construct from a set of contours.


Public Attributes

MFVec2f coord
 Glyph coordinates.

MFInt32 coordIndex
 Glyph coordinate indices.

float advanceWidth
 The distance the pen should advance horizontally after drawing the glyph.

float advanceHeight
 The distance the pen should advance vertically after drawing the glyph.


Detailed Description

Used to hold the geometry of individual glyphs.


Constructor & Destructor Documentation

GlyphGeometry const std::vector< MFVec2f > &    contours,
float    advanceWidth,
float    advanceHeight
throw (std::bad_alloc)
 

Construct from a set of contours.

Parameters:
contours a vector of closed contours that make up the glyph's outline.
advanceWidth the distance the pen should advance horizontally after drawing the glyph.
advanceHeight the distance the pen should advance vertically after drawing the glyph.
Exceptions:
std::bad_alloc if memory allocation fails.

Member Data Documentation

float advanceHeight
 

The distance the pen should advance vertically after drawing the glyph.

float advanceWidth
 

The distance the pen should advance horizontally after drawing the glyph.

MFVec2f coord
 

Glyph coordinates.

MFInt32 coordIndex
 

Glyph coordinate indices.