uicore::FontMetrics Class Reference

Font metrics class. More...

#include <font_metrics.h>

Public Member Functions

 FontMetrics ()
 
 FontMetrics (float height, float ascent, float descent, float internal_leading, float external_leading, float line_height, float pixel_ratio)
 
float ascent () const
 Returns the font ascender. More...
 
float baseline_offset () const
 Returns the baseline offset from the top of a line. More...
 
float descent () const
 Returns the font descender. More...
 
float external_leading () const
 Returns the amount of extra leading (space) that to add between rows. More...
 
float height () const
 Returns the height of the font. More...
 
float internal_leading () const
 Returns the amount of leading (space) inside the bounds set by the height() function. More...
 
float line_height () const
 Return the distance between lines. More...
 

Detailed Description

Font metrics class.

Constructor & Destructor Documentation

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

References external_leading(), and uicore::f.

Member Function Documentation

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: