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 |
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 |
Definition at line 41 of file font.cc.
Referenced by impeller::TextContents::ComputeVertexData().
|
overridevirtual |
Implements impeller::Comparable< Font >.
Definition at line 31 of file font.cc.
Referenced by impeller::TextShadowCache::TextShadowCacheKey::Hash::operator()().
const Font::Metrics & impeller::Font::GetMetrics | ( | ) | const |
Definition at line 45 of file font.cc.
Referenced by impeller::DrawGlyph().
const std::shared_ptr< Typeface > & impeller::Font::GetTypeface | ( | ) | const |
The typeface whose intrinsic properties this font modifies.
Definition at line 27 of file font.cc.
Referenced by impeller::DrawGlyph().
|
overridevirtual |
Implements impeller::Comparable< Font >.
Definition at line 36 of file font.cc.
References impeller::DeepComparePointer().
Referenced by impeller::ScaledFont::Equal::operator()(), and impeller::TextShadowCache::TextShadowCacheKey::Equal::operator()().
bool impeller::Font::IsValid | ( | ) | const |
Definition at line 23 of file font.cc.
Referenced by impeller::TextRun::TextRun().