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"
29using FontGlyphMap = std::unordered_map<ScaledFont, std::unordered_set<Glyph>>;
Describes a typeface along with any modifications to its intrinsic properties.
bool IsEqual(const Font &other) const override
std::size_t GetHash() const override
constexpr std::size_t HashCombine()
std::unordered_map< ScaledFont, std::unordered_set< Glyph > > FontGlyphMap
A font along with a glyph in that font rendered at a particular scale.
FontGlyphPair(const ScaledFont &sf, const Glyph &g)
const ScaledFont & scaled_font
The glyph index in the typeface.
A font and a scale. Used as a key that represents a typeface within a glyph atlas.
constexpr bool operator()(const impeller::ScaledFont &lhs, const impeller::ScaledFont &rhs) const
constexpr std::size_t operator()(const impeller::ScaledFont &sf) const