5 #ifndef FLUTTER_IMPELLER_TYPOGRAPHER_FONT_GLYPH_PAIR_H_
6 #define FLUTTER_IMPELLER_TYPOGRAPHER_FONT_GLYPH_PAIR_H_
21 std::optional<StrokeParameters>
stroke;
92 std::optional<GlyphProperties> p_properties)
103 bool has_stroke = sg.
properties->stroke.has_value();
Describes a typeface along with any modifications to its intrinsic properties.
bool IsEqual(const Font &other) const override
std::size_t GetHash() const override
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.
bool operator()(const impeller::GlyphProperties &lhs, const impeller::GlyphProperties &rhs) const
std::optional< StrokeParameters > stroke
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)
A structure to store all of the parameters related to stroking a path or basic geometry object.
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)