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 {
45static_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;
The glyph index in the typeface.
Type type
Whether the glyph is a path or a bitmap.
Glyph(uint16_t p_index, Type p_type, Rect p_bounds)
Rect bounds
Visibility coverage of the glyph in text run space (relative to the baseline, no scaling applied).
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