Font metrics class.
More...
#include <font_metrics.h>
uicore::FontMetrics::FontMetrics |
( |
| ) |
|
|
inline |
uicore::FontMetrics::FontMetrics |
( |
float |
height, |
|
|
float |
ascent, |
|
|
float |
descent, |
|
|
float |
internal_leading, |
|
|
float |
external_leading, |
|
|
float |
line_height, |
|
|
float |
pixel_ratio |
|
) |
| |
|
inline |
float uicore::FontMetrics::ascent |
( |
| ) |
const |
|
inline |
Returns the font ascender.
float uicore::FontMetrics::baseline_offset |
( |
| ) |
const |
|
inline |
Returns the baseline offset from the top of a line.
float uicore::FontMetrics::descent |
( |
| ) |
const |
|
inline |
Returns the font descender.
float uicore::FontMetrics::external_leading |
( |
| ) |
const |
|
inline |
Returns the amount of extra leading (space) that to add between rows.
Referenced by FontMetrics().
float uicore::FontMetrics::height |
( |
| ) |
const |
|
inline |
Returns the height of the font.
float uicore::FontMetrics::internal_leading |
( |
| ) |
const |
|
inline |
Returns the amount of leading (space) inside the bounds set by the height() function.
float uicore::FontMetrics::line_height |
( |
| ) |
const |
|
inline |
Return the distance between lines.
The documentation for this class was generated from the following file: