 |
Flutter Impeller
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_IMPELLER_TYPOGRAPHER_GLYPH_H_
6 #define FLUTTER_IMPELLER_TYPOGRAPHER_GLYPH_H_
11 #include "flutter/fml/hash_combine.h"
12 #include "flutter/fml/macros.h"
21 enum class Type : uint8_t {
45 static_assert(
sizeof(Glyph) == 20);
52 static_assert(
sizeof(g.
index) == 2);
53 static_assert(
sizeof(g.
type) == 1);
54 return (
static_cast<size_t>(g.
type) << 16) | g.
index;
74 #endif // FLUTTER_IMPELLER_TYPOGRAPHER_GLYPH_H_
constexpr std::size_t operator()(const impeller::Glyph &g) const
Glyph(uint16_t p_index, Type p_type, Rect p_bounds)
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.
Rect bounds
Visibility coverage of the glyph in text run space (relative to the baseline, no scaling applied).