diff --git a/impeller/typographer/glyph.h b/impeller/typographer/glyph.h index b036e415cc540..d3797568fdaa2 100644 --- a/impeller/typographer/glyph.h +++ b/impeller/typographer/glyph.h @@ -17,7 +17,7 @@ namespace impeller { /// @brief The glyph index in the typeface. /// struct Glyph { - enum class Type { + enum class Type : uint8_t { kPath, kBitmap, }; @@ -39,6 +39,10 @@ struct Glyph { : index(p_index), type(p_type), bounds(p_bounds) {} }; +// Many Glyph instances are instantiated, so care should be taken when +// increasing the size. +static_assert(sizeof(Glyph) == 20); + } // namespace impeller template <>