29 #ifndef PT_GFX_TEXTMETRICS_H
30 #define PT_GFX_TEXTMETRICS_H
32 #include <Pt/Gfx/Api.h>
98 return _boundingWidth;
112 return _boundingHeight;
126 Float _boundingWidth;
127 Float _boundingHeight;
134 #endif // include guard
void setBoundingHeight(Float n)
Sets the bounding box height.
Definition: TextMetrics.h:117
Core module.
Definition: Allocator.h:33
Float bearingX() const
Returns the horizontal bearing from origin to bounding box.
Definition: TextMetrics.h:68
void setAdvance(Float n)
Sets the advance width of the text.
Definition: TextMetrics.h:61
void setBearingY(Float n)
Sets the vertical bearing.
Definition: TextMetrics.h:89
Float advance() const
Returns the advance width of the text.
Definition: TextMetrics.h:54
Metrics for a measured line of text.
Definition: TextMetrics.h:46
Float bearingY() const
Returns the vertical bearing from baseline to top of bounding box.
Definition: TextMetrics.h:82
Float boundingHeight() const
Returns the height of the bounding box.
Definition: TextMetrics.h:110
void setBoundingWidth(Float n)
Sets the bounding box width.
Definition: TextMetrics.h:103
TextMetrics()
Constructs empty text metrics.
Float boundingWidth() const
Returns the width of the bounding box.
Definition: TextMetrics.h:96
void setBearingX(Float n)
Sets the horizontal bearing.
Definition: TextMetrics.h:75