Describes the modifications made to the intrinsic properties of a typeface. More...
#include <font.h>
Public Member Functions | |
constexpr bool | operator== (const Metrics &o) const |
Public Attributes | |
Scalar | point_size = 12.0f |
bool | embolden = false |
Scalar | skewX = 0.0f |
Scalar | scaleX = 1.0f |
Describes the modifications made to the intrinsic properties of a typeface.
The coordinate system of a font has its origin at (0, 0) on the baseline with an upper-left-origin coordinate system.
|
inlineconstexpr |
bool impeller::Font::Metrics::embolden = false |
Definition at line 49 of file font.h.
Referenced by operator==(), and impeller::ToFont().
Scalar impeller::Font::Metrics::point_size = 12.0f |
The point size of the font.
Definition at line 48 of file font.h.
Referenced by std::hash< impeller::Font::Metrics >::operator()(), operator==(), and impeller::ToFont().
Scalar impeller::Font::Metrics::scaleX = 1.0f |
Definition at line 51 of file font.h.
Referenced by std::hash< impeller::Font::Metrics >::operator()(), operator==(), and impeller::ToFont().
Scalar impeller::Font::Metrics::skewX = 0.0f |
Definition at line 50 of file font.h.
Referenced by std::hash< impeller::Font::Metrics >::operator()(), operator==(), and impeller::ToFont().