From 15582d5fc164f8e0a4b5f2df5ef246e213cd85d2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 23 Dec 2022 11:14:16 -0700 Subject: [PATCH] [ft-colr] Apply slant to clipbox --- src/hb-ft-colr.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ft-colr.hh b/src/hb-ft-colr.hh index be8e940d2..c0e29ebfe 100644 --- a/src/hb-ft-colr.hh +++ b/src/hb-ft-colr.hh @@ -430,9 +430,9 @@ hb_ft_paint_glyph_colr (hb_font_t *font, has_clip = FT_Get_Color_Glyph_ClipBox (ft_face, gid, &clip_box); if (has_clip) paint_funcs->push_clip_rectangle (paint_data, - clip_box.bottom_left.x, + clip_box.bottom_left.x - font->slant_xy * clip_box.bottom_left.y, clip_box.bottom_left.y, - clip_box.top_right.x, + clip_box.top_right.x - font->slant_xy * clip_box.top_right.y, clip_box.top_right.y); paint_funcs->push_root_transform (paint_data, font);