5#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_FONT_GLYPH_PAIR_H_
6#define FLUTTER_IMPELLER_TYPOGRAPHER_FONT_GLYPH_PAIR_H_
8#include <unordered_map>
9#include <unordered_set>
46 Point p_subpixel_offset,
54 std::unordered_map<ScaledFont, std::unordered_set<SubpixelGlyph>>;
static uint32_t hash(const SkShaderBase::GradientInfo &v)
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< SubpixelGlyph > > FontGlyphMap
constexpr uint32_t ToARGB() const
Convert to ARGB 32 bit color.
static constexpr Color Black()
A font along with a glyph in that font rendered at a particular scale and subpixel position.
const SubpixelGlyph & glyph
FontGlyphPair(const ScaledFont &sf, const SubpixelGlyph &g)
const ScaledFont & scaled_font
The glyph index in the typeface.
Type type
Whether the glyph is a path or a bitmap.
A font and a scale. Used as a key that represents a typeface within a glyph atlas.
A glyph and its subpixel position.
GlyphProperties properties
SubpixelGlyph(Glyph p_glyph, Point p_subpixel_offset, GlyphProperties p_properties)
constexpr bool operator()(const impeller::ScaledFont &lhs, const impeller::ScaledFont &rhs) const
constexpr bool operator()(const impeller::SubpixelGlyph &lhs, const impeller::SubpixelGlyph &rhs) const
constexpr std::size_t operator()(const impeller::ScaledFont &sf) const
constexpr std::size_t operator()(const impeller::SubpixelGlyph &sg) const