#include <Pt/Gfx/TextMetrics.h>
Width and bounds of a text run.
More...
|
|
| TextMetrics () |
| | Constructs empty text metrics.
|
|
Float | advance () const |
| | Returns the advance width of the text.
|
|
void | setAdvance (Float n) |
| | Sets the advance width of the text.
|
|
Float | bearingX () const |
| | Returns the horizontal bearing from origin to bounding box.
|
|
void | setBearingX (Float n) |
| | Sets the horizontal bearing.
|
|
Float | bearingY () const |
| | Returns the vertical bearing from baseline to top of bounding box.
|
|
void | setBearingY (Float n) |
| | Sets the vertical bearing.
|
|
Float | boundingWidth () const |
| | Returns the width of the bounding box.
|
|
void | setBoundingWidth (Float n) |
| | Sets the bounding box width.
|
|
Float | boundingHeight () const |
| | Returns the height of the bounding box.
|
|
void | setBoundingHeight (Float n) |
| | Sets the bounding box height.
|
TextMetrics is the result of PainterBase::textMetrics() for one string in the current font. advance() is the distance to move the origin for the next run. bearingX() and bearingY() are the offset from that origin to the bounding box. boundingWidth() and boundingHeight() are the box size.