|
Public Member Functions |
| StringDimensions (double xAdv=0.0, double yMin=0.0, double yMax=0.0, double spacingFactor=1.2) |
void | accrueXAdvance (const double xAdv) |
| Sum up the individual x advances of each glyph:.
|
void | setYMin (const double yMin) |
| Keep a running tab on the minimum y value (descent) from all glyphs:.
|
void | setYMax (const double yMax) |
| Keep a running tab on the maximum y value (ascent) from all glyphs:.
|
const double | getXAdvance () |
const double | getYMin () |
const double | getYMax () |
const double | getLineSpacing () |
| Line spacing is just the maximum ascent minus the maximum descent multiplied by the line spacing factor:.
|
Private Attributes |
double | xadv |
double | ymin |
double | ymax |
double | lineSpacingFactor |