29#ifndef PT_GFX_TEXTMETRICS_H
30#define PT_GFX_TEXTMETRICS_H
32#include <Pt/Gfx/Api.h>
101 return _boundingWidth;
115 return _boundingHeight;
129 Float _boundingWidth;
130 Float _boundingHeight;
Float boundingWidth() const
Returns the width of the bounding box.
Definition TextMetrics.h:99
void setBoundingHeight(Float n)
Sets the bounding box height.
Definition TextMetrics.h:120
Float boundingHeight() const
Returns the height of the bounding box.
Definition TextMetrics.h:113
Float bearingY() const
Returns the vertical bearing from baseline to top of bounding box.
Definition TextMetrics.h:85
Float advance() const
Returns the advance width of the text.
Definition TextMetrics.h:57
TextMetrics()
Constructs empty text metrics.
void setAdvance(Float n)
Sets the advance width of the text.
Definition TextMetrics.h:64
void setBearingX(Float n)
Sets the horizontal bearing.
Definition TextMetrics.h:78
void setBearingY(Float n)
Sets the vertical bearing.
Definition TextMetrics.h:92
void setBoundingWidth(Float n)
Sets the bounding box width.
Definition TextMetrics.h:106
Float bearingX() const
Returns the horizontal bearing from origin to bounding box.
Definition TextMetrics.h:71
Graphics and imaging services.
Definition Api-Argb32Image.h:12
Core module.
Definition Allocator.h:33