From 7c9e42ed924d7e286b666e9206532cf1dac76955 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 22 Dec 2022 19:49:06 -0700 Subject: [PATCH] [colr] Fix transform hell --- src/hb-ot-color-colr-table.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-ot-color-colr-table.hh b/src/hb-ot-color-colr-table.hh index 9fbdd2c29..6f9dce82e 100644 --- a/src/hb-ot-color-colr-table.hh +++ b/src/hb-ot-color-colr-table.hh @@ -762,7 +762,9 @@ struct PaintGlyph { c->funcs->push_inverse_root_transform (c->data, c->font); c->funcs->push_clip_glyph (c->data, gid, c->font); + c->funcs->push_root_transform (c->data, c->font); c->recurse (this+paint); + c->funcs->pop_root_transform (c->data); c->funcs->pop_clip (c->data); c->funcs->pop_inverse_root_transform (c->data); }