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