diff --git a/src/OT/Color/COLR/COLR.hh b/src/OT/Color/COLR/COLR.hh index 408ed5060..061073dff 100644 --- a/src/OT/Color/COLR/COLR.hh +++ b/src/OT/Color/COLR/COLR.hh @@ -2085,9 +2085,9 @@ struct COLR if (is_bounded) c.recurse (*paint); + // We push root transform first and clip after in this backend c.funcs->pop_clip (c.data); - - c.funcs->pop_transform (c.data); + c.funcs->pop_transform (c.data); return true; } diff --git a/src/hb-ft-colr.hh b/src/hb-ft-colr.hh index 642897fd9..5a282e2fa 100644 --- a/src/hb-ft-colr.hh +++ b/src/hb-ft-colr.hh @@ -478,6 +478,7 @@ hb_ft_paint_glyph_colr (hb_font_t *font, if (is_bounded) c.recurse (paint); + // We push clip first and root transform after in this backend c.funcs->pop_transform (c.data); c.funcs->pop_clip (c.data);