5 #ifndef FLUTTER_IMPELLER_TYPOGRAPHER_FONT_GLYPH_PAIR_H_
6 #define FLUTTER_IMPELLER_TYPOGRAPHER_FONT_GLYPH_PAIR_H_
97 std::optional<GlyphProperties> p_properties)
102 template <
typename H>
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 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.
FontGlyphPair(const ScaledFont &sf, const SubpixelGlyph &g)
The glyph index in the typeface.
Type type
Whether the glyph is a path or a bitmap.
constexpr bool operator()(const impeller::GlyphProperties &lhs, const impeller::GlyphProperties &rhs) const
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.
friend H AbslHashValue(H h, const ScaledFont &sf)
constexpr bool operator()(const impeller::SubpixelGlyph &lhs, const impeller::SubpixelGlyph &rhs) const
A glyph and its subpixel position.
std::optional< GlyphProperties > properties
friend H AbslHashValue(H h, const SubpixelGlyph &sg)
SubpixelPosition subpixel_offset
SubpixelGlyph(Glyph p_glyph, SubpixelPosition p_subpixel_offset, std::optional< GlyphProperties > p_properties)