 |
Flutter Impeller
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_IMPELLER_TYPOGRAPHER_FONT_H_
6 #define FLUTTER_IMPELLER_TYPOGRAPHER_FONT_H_
11 #include "flutter/fml/macros.h"
46 Font(std::shared_ptr<Typeface> typeface, Metrics metrics);
57 const std::shared_ptr<Typeface>&
GetTypeface()
const;
62 std::size_t
GetHash()
const override;
68 std::shared_ptr<Typeface> typeface_;
69 Metrics metrics_ = {};
70 bool is_valid_ =
false;
82 #endif // FLUTTER_IMPELLER_TYPOGRAPHER_FONT_H_
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.