 |
Flutter Impeller
|
|
Go to the documentation of this file.
12 : typeface_(
std::move(typeface)),
14 axis_alignment_(axis_alignment) {
32 return fml::HashCombine(is_valid_, typeface_ ? typeface_->GetHash() : 0u,
38 is_valid_ == other.is_valid_ && metrics_ == other.metrics_;
42 return axis_alignment_;
bool DeepComparePointer(const std::shared_ptr< ComparableType > &lhs, const std::shared_ptr< ComparableType > &rhs)
std::size_t GetHash() const override
Describes a typeface along with any modifications to its intrinsic properties.
const std::shared_ptr< Typeface > & GetTypeface() const
The typeface whose intrinsic properties this font modifies.
Font(std::shared_ptr< Typeface > typeface, Metrics metrics, AxisAlignment axis_alignment)
AxisAlignment
Determines the axis along which there is subpixel positioning.
const Metrics & GetMetrics() const
bool IsEqual(const Font &other) const override
Describes the modifications made to the intrinsic properties of a typeface.
AxisAlignment GetAxisAlignment() const