 |
Flutter Impeller
|
|
Go to the documentation of this file.
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;
63 #endif // FLUTTER_IMPELLER_TYPOGRAPHER_GLYPH_H_
Glyph(uint16_t p_index, Type p_type)
constexpr std::size_t operator()(const impeller::Glyph &g) const
The glyph index in the typeface.
constexpr bool operator()(const impeller::Glyph &lhs, const impeller::Glyph &rhs) const
constexpr bool operator()(const impeller::Glyph &lhs, const impeller::Glyph &rhs) const
Type type
Whether the glyph is a path or a bitmap.