[COLR] Return false from get_extents if table version not 1

pull/3928/head
Behdad Esfahbod 2 years ago
parent b3d6a5ef86
commit d0ee5a452f
  1. 2
      src/hb-ot-color-colr-table.hh

@ -1547,6 +1547,8 @@ struct COLR
bool
get_extents (hb_font_t *font, hb_codepoint_t glyph, hb_glyph_extents_t *extents) const
{
if (version != 1)
return false;
if ((this+clipList).get_extents (glyph, extents))
{
extents->x_bearing = font->em_scale_x (extents->x_bearing);

Loading…
Cancel
Save