#include <Pt/Gfx/TextMetrics.h>
Metrics for a line of text.
Public Member Functions | |
| Float | advance () const |
| Returns the advance width of the text. | |
| Float | bearingX () const |
| Returns the horizontal bearing from origin to bounding box. | |
| Float | bearingY () const |
| Returns the vertical bearing from baseline to top of bounding box. | |
| Float | boundingHeight () const |
| Returns the height of the bounding box. | |
| Float | boundingWidth () const |
| Returns the width of the bounding box. | |
| void | setAdvance (Float n) |
| Sets the advance width of the text. | |
| void | setBearingX (Float n) |
| Sets the horizontal bearing. | |
| void | setBearingY (Float n) |
| Sets the vertical bearing. | |
| void | setBoundingHeight (Float n) |
| Sets the bounding box height. | |
| void | setBoundingWidth (Float n) |
| Sets the bounding box width. | |