FlatUI
An open source project by
FPL.
|
This class has additional properties for font metrics. More...
#include <font_buffer.h>
This class has additional properties for font metrics.
For details of font metrics, refer http://support.microsoft.com/kb/32667 In this class, ascender and descender values are retrieved from FreeType font property.
And internal/external leading values are updated based on rendering glyph information. When rendering a string, the leading values tracks max (min for internal leading) value in the string.
Public Member Functions | |
FontMetrics () | |
The default constructor for FontMetrics. | |
FontMetrics (int32_t base_line, int32_t internal_leading, int32_t ascender, int32_t descender, int32_t external_leading) | |
The constructor with initialization parameters for FontMetrics. | |
~FontMetrics () | |
The destructor for FontMetrics. | |
int32_t | base_line () const |
void | set_base_line (int32_t base_line) |
set the baseline value. More... | |
int32_t | internal_leading () const |
void | set_internal_leading (int32_t internal_leading) |
Set the internal leading parameter value. More... | |
int32_t | ascender () const |
void | set_ascender (int32_t ascender) |
Set the ascender value. More... | |
int32_t | descender () const |
void | set_descender (int32_t descender) |
Set the descender value. More... | |
int32_t | external_leading () const |
void | set_external_leading (int32_t external_leading) |
Set the external leading parameter value. More... | |
int32_t | total () const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the ascender value.
[in] | ascender | An int32_t to set as the ascender value. |
|
inline |
set the baseline value.
[in] | base_line | An int32_t to set as the baseline value. |
|
inline |
Set the descender value.
[in] | descender | An int32_t to set as the descender value. |
|
inline |
Set the external leading parameter value.
[in] | external_leading | An int32_t to set as the external leading value. |
|
inline |
Set the internal leading parameter value.
[in] | internal_leading | An int32_t to set as the internal leading value. |
|
inline |