5 #ifndef FLUTTER_IMPELLER_TYPOGRAPHER_GLYPH_H_
6 #define FLUTTER_IMPELLER_TYPOGRAPHER_GLYPH_H_
17 enum class Type : uint8_t {
34 static_assert(
sizeof(Glyph) == 4);
41 static_assert(
sizeof(g.
index) == 2);
42 static_assert(
sizeof(g.
type) == 1);
43 return (
static_cast<size_t>(g.
type) << 16) | g.
index;
The glyph index in the typeface.
Glyph(uint16_t p_index, Type p_type)
Type type
Whether the glyph is a path or a bitmap.
constexpr bool operator()(const impeller::Glyph &lhs, const impeller::Glyph &rhs) const
constexpr std::size_t operator()(const impeller::Glyph &g) const
constexpr bool operator()(const impeller::Glyph &lhs, const impeller::Glyph &rhs) const