[COLR] Return false from get_extents if table version not 1
This commit is contained in:
parent
b3d6a5ef86
commit
d0ee5a452f
|
@ -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…
Reference in New Issue