Flutter Engine
The Flutter Engine
|
Describes a typeface along with any modifications to its intrinsic properties. More...
#include <font.h>
Classes | |
struct | Metrics |
Describes the modifications made to the intrinsic properties of a typeface. More... | |
Public Member Functions | |
Font (std::shared_ptr< Typeface > typeface, Metrics metrics, AxisAlignment axis_alignment) | |
~Font () | |
bool | IsValid () const |
const std::shared_ptr< Typeface > & | GetTypeface () const |
The typeface whose intrinsic properties this font modifies. More... | |
const Metrics & | GetMetrics () const |
std::size_t | GetHash () const override |
bool | IsEqual (const Font &other) const override |
AxisAlignment | GetAxisAlignment () const |
virtual std::size_t | GetHash () const=0 |
virtual bool | IsEqual (const Font &other) const=0 |
Describes a typeface along with any modifications to its intrinsic properties.
impeller::Font::Font | ( | std::shared_ptr< Typeface > | typeface, |
Metrics | metrics, | ||
AxisAlignment | axis_alignment | ||
) |
|
default |
AxisAlignment impeller::Font::GetAxisAlignment | ( | ) | const |
|
overridevirtual |
Implements impeller::Comparable< Font >.
Definition at line 31 of file font.cc.
const Font::Metrics & impeller::Font::GetMetrics | ( | ) | const |
const std::shared_ptr< Typeface > & impeller::Font::GetTypeface | ( | ) | const |
|
overridevirtual |
Implements impeller::Comparable< Font >.
Definition at line 36 of file font.cc.
bool impeller::Font::IsValid | ( | ) | const |