29#ifndef PT_GFX_FONTMETRICS_H
30#define PT_GFX_FONTMETRICS_H
32#include <Pt/Gfx/Api.h>
88 return _ascent + _descent;
137 return _ascent + _descent + _leading;
144 return _underlinePos;
158 return _underlineThickness;
165 _underlineThickness = n;
172 return _strikeoutPos;
186 return _strikeoutThickness;
193 _strikeoutThickness = n;
203 Float _underlineThickness;
205 Float _strikeoutThickness;
void setLeading(Float n)
Sets the leading.
Definition FontMetrics.h:128
Float leading() const
Returns the external leading between lines.
Definition FontMetrics.h:121
Float strikeoutThickness() const
Returns the strikeout line thickness.
Definition FontMetrics.h:184
Float underlinePos() const
Returns the underline position below the baseline.
Definition FontMetrics.h:142
void setAscent(Float n)
Sets the ascent.
Definition FontMetrics.h:65
Float height() const
Returns the font height (ascent + descent).
Definition FontMetrics.h:86
void setUnderlinePos(Float n)
Sets the underline position.
Definition FontMetrics.h:149
Float underlineThickness() const
Returns the underline thickness.
Definition FontMetrics.h:156
void setStrikeoutPos(Float n)
Sets the strikeout position.
Definition FontMetrics.h:177
Float ascent() const
Returns the ascent above the baseline.
Definition FontMetrics.h:58
void setXHeight(Float n)
Sets the x-height.
Definition FontMetrics.h:114
void setDescent(Float n)
Sets the descent.
Definition FontMetrics.h:79
Float lineHeight() const
Returns the line height (ascent + descent + leading).
Definition FontMetrics.h:135
void setUnderlineThickness(Float n)
Sets the underline thickness.
Definition FontMetrics.h:163
void setCapHeight(Float n)
Sets the cap height.
Definition FontMetrics.h:100
Float strikeoutPos() const
Returns the strikeout position above the baseline.
Definition FontMetrics.h:170
void setStrikeoutThickness(Float n)
Sets the strikeout thickness.
Definition FontMetrics.h:191
Float xHeight() const
Returns the height of lowercase x.
Definition FontMetrics.h:107
Float capHeight() const
Returns the height of capital letters.
Definition FontMetrics.h:93
Float descent() const
Returns the descent below the baseline.
Definition FontMetrics.h:72
FontMetrics()
Constructs empty font metrics.
Graphics and imaging services.
Definition Api-Argb32Image.h:12
Core module.
Definition Allocator.h:33