From 54bcb3793a0670cedd3024a0da7348b3979adddb Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 29 Oct 2025 18:42:33 -0400 Subject: [PATCH] [font] Don't apply slant to singular glyph origin functions either (#5630) Followup to 6105bad18730fe05916b8b87903333d804ef8b84 --- src/hb-font.hh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/hb-font.hh b/src/hb-font.hh index d5626661b..b53134fa0 100644 --- a/src/hb-font.hh +++ b/src/hb-font.hh @@ -445,9 +445,7 @@ struct hb_font_t if (synthetic && ret) { - /* Slant */ - if (slant_xy) - *x += roundf (*y * slant_xy); + /* Slant is ignored as it does not affect glyph origin */ /* Embolden */ if (!embolden_in_place) @@ -471,9 +469,7 @@ struct hb_font_t if (synthetic && ret) { - /* Slant */ - if (slant_xy) - *x += roundf (*y * slant_xy); + /* Slant is ignored as it does not affect glyph origin */ /* Embolden */ if (!embolden_in_place)