[ft-colr] Apply slant to clipbox

This commit is contained in:
Behdad Esfahbod 2022-12-23 11:14:16 -07:00
parent 7abd5dcf10
commit 15582d5fc1
1 changed files with 2 additions and 2 deletions

View File

@ -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); has_clip = FT_Get_Color_Glyph_ClipBox (ft_face, gid, &clip_box);
if (has_clip) if (has_clip)
paint_funcs->push_clip_rectangle (paint_data, 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.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); clip_box.top_right.y);
paint_funcs->push_root_transform (paint_data, font); paint_funcs->push_root_transform (paint_data, font);