29 #ifndef PT_GFX_TEXTMETRICS_H
30 #define PT_GFX_TEXTMETRICS_H
32 #include <Pt/Gfx/Api.h>
91 return _boundingWidth;
105 return _boundingHeight;
119 Float _boundingWidth;
120 Float _boundingHeight;
127 #endif // include guard
void setBoundingWidth(Float n)
Sets the bounding box width.
Definition: TextMetrics.h:96
void setBearingX(Float n)
Sets the horizontal bearing.
Definition: TextMetrics.h:68
Float boundingHeight() const
Returns the height of the bounding box.
Definition: TextMetrics.h:103
Float bearingX() const
Returns the horizontal bearing from origin to bounding box.
Definition: TextMetrics.h:61
void setBoundingHeight(Float n)
Sets the bounding box height.
Definition: TextMetrics.h:110
Float advance() const
Returns the advance width of the text.
Definition: TextMetrics.h:47
Metrics for a line of text.
Definition: TextMetrics.h:40
Float bearingY() const
Returns the vertical bearing from baseline to top of bounding box.
Definition: TextMetrics.h:75
void setBearingY(Float n)
Sets the vertical bearing.
Definition: TextMetrics.h:82
void setAdvance(Float n)
Sets the advance width of the text.
Definition: TextMetrics.h:54
Float boundingWidth() const
Returns the width of the bounding box.
Definition: TextMetrics.h:89