From 5bd6fc1acedfc17b65262f6a96ab3aa282852df7 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 7 Jan 2023 16:32:50 -0700 Subject: [PATCH] Comment --- src/OT/Color/COLR/COLR.hh | 4 ++-- src/hb-ft-colr.hh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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);