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_;
70 bool is_valid_ =
false;
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.
std::size_t GetHash() const override
const Metrics & GetMetrics() const
constexpr std::size_t HashCombine()
Describes the modifications made to the intrinsic properties of a typeface.
constexpr bool operator==(const Metrics &o) const
constexpr std::size_t operator()(const impeller::Font::Metrics &m) const