 |
Flutter Impeller
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_IMPELLER_TYPOGRAPHER_FONT_GLYPH_PAIR_H_
6 #define FLUTTER_IMPELLER_TYPOGRAPHER_FONT_GLYPH_PAIR_H_
9 #include <unordered_map>
10 #include <unordered_set>
13 #include "flutter/fml/macros.h"
29 using FontGlyphMap = std::unordered_map<ScaledFont, std::unordered_set<Glyph>>;
59 #endif // FLUTTER_IMPELLER_TYPOGRAPHER_FONT_GLYPH_PAIR_H_
std::size_t GetHash() const override
constexpr std::size_t operator()(const impeller::ScaledFont &sf) const
Describes a typeface along with any modifications to its intrinsic properties.
FontGlyphPair(const ScaledFont &sf, const Glyph &g)
std::unordered_map< ScaledFont, std::unordered_set< Glyph > > FontGlyphMap
The glyph index in the typeface.
const ScaledFont & scaled_font
A font along with a glyph in that font rendered at a particular scale.
bool IsEqual(const Font &other) const override
constexpr bool operator()(const impeller::ScaledFont &lhs, const impeller::ScaledFont &rhs) const
A font and a scale. Used as a key that represents a typeface within a glyph atlas.