 |
Flutter Impeller
|
|
Go to the documentation of this file.
10 #include "flutter/fml/macros.h"
45 Font(std::shared_ptr<Typeface> typeface, Metrics metrics);
56 const std::shared_ptr<Typeface>&
GetTypeface()
const;
61 std::size_t
GetHash()
const override;
67 std::shared_ptr<Typeface> typeface_;
68 Metrics metrics_ = {};
69 bool is_valid_ =
false;
std::size_t GetHash() const override
Describes a typeface along with any modifications to its intrinsic properties.
Font(std::shared_ptr< Typeface > typeface, Metrics metrics)
const std::shared_ptr< Typeface > & GetTypeface() const
The typeface whose intrinsic properties this font modifies.
constexpr bool operator==(const Metrics &o) const
const Metrics & GetMetrics() const
bool IsEqual(const Font &other) const override
constexpr std::size_t operator()(const impeller::Font::Metrics &m) const
Describes the modifications made to the intrinsic properties of a typeface.