FastUIDraw
|
Represents various metric values global to an entire font. More...
#include <font_metrics.hpp>
Public Member Functions | |
FontMetrics (void) | |
FontMetrics (const FontMetrics &obj) | |
float | ascender (void) const |
FontMetrics & | ascender (float) |
float | descender (void) const |
FontMetrics & | descender (float) |
float | height (void) const |
FontMetrics & | height (float) |
FontMetrics & | operator= (const FontMetrics &obj) |
float | strikeout_position (void) const |
FontMetrics & | strikeout_position (float) |
float | strikeout_thickness (void) const |
FontMetrics & | strikeout_thickness (float) |
void | swap (FontMetrics &obj) |
float | underline_position (void) const |
FontMetrics & | underline_position (float) |
float | underline_thickness (void) const |
FontMetrics & | underline_thickness (float) |
float | units_per_EM (void) const |
FontMetrics & | units_per_EM (float) |
Represents various metric values global to an entire font.
Definition at line 34 of file font_metrics.hpp.
fastuidraw::FontMetrics::FontMetrics | ( | void | ) |
Ctor. Initializes all fields as zero.
fastuidraw::FontMetrics::FontMetrics | ( | const FontMetrics & | obj | ) |
Copy ctor.
obj | vaue from which to copy |
float fastuidraw::FontMetrics::ascender | ( | void | ) | const |
The typographical ascender value for the font in font units; this is essentially the maximum across all glyphs of the distance from the baseline to top of the glyph.
FontMetrics& fastuidraw::FontMetrics::ascender | ( | float | ) |
Set the value returned by ascender(void) const
float fastuidraw::FontMetrics::descender | ( | void | ) | const |
The typographical descender value for the font in font units; this is essentially the minumum across all glyphs of the signed distance from the baseline to bottom of the glyph. A negative value indicates below the baseline and a positive value above the baseline.
FontMetrics& fastuidraw::FontMetrics::descender | ( | float | ) |
Set the value returned by descender(void) const
float fastuidraw::FontMetrics::height | ( | void | ) | const |
The recommended distance, in font units, between lines of text. This is typically greater than the difference between ascender() and descender().
FontMetrics& fastuidraw::FontMetrics::height | ( | float | ) |
Set the value returned by height(void) const
FontMetrics& fastuidraw::FontMetrics::operator= | ( | const FontMetrics & | obj | ) |
assignment operator
obj | value from which to assign |
float fastuidraw::FontMetrics::strikeout_position | ( | void | ) | const |
Returns the strike-through position.
FontMetrics& fastuidraw::FontMetrics::strikeout_position | ( | float | ) |
Set the value returned by strikeout_position(void) const
float fastuidraw::FontMetrics::strikeout_thickness | ( | void | ) | const |
Returns the strike-through thickness.
FontMetrics& fastuidraw::FontMetrics::strikeout_thickness | ( | float | ) |
Set the value returned by strikeout_thickness(void) const
void fastuidraw::FontMetrics::swap | ( | FontMetrics & | obj | ) |
Swap operation
obj | object with which to swap |
float fastuidraw::FontMetrics::underline_position | ( | void | ) | const |
Returns the underline position.
FontMetrics& fastuidraw::FontMetrics::underline_position | ( | float | ) |
Set the value returned by underline_position(void) const
float fastuidraw::FontMetrics::underline_thickness | ( | void | ) | const |
Returns the underline thickness.
FontMetrics& fastuidraw::FontMetrics::underline_thickness | ( | float | ) |
Set the value returned by underline_thickness(void) const
float fastuidraw::FontMetrics::units_per_EM | ( | void | ) | const |
The number of font units per EM for the glyph. The conversion from font coordinates to pixel coordiantes is given by:
FontMetrics& fastuidraw::FontMetrics::units_per_EM | ( | float | ) |
Set the value returned by units_per_EM(void) const