[font] Don't apply slant to singular glyph origin functions either (#5630)

Followup to 6105bad187
This commit is contained in:
Behdad Esfahbod authored and GitHub committed 2025-10-29 16:42:33 -06:00
1 parent 6105bad187
commit 54bcb3793a
1 file changed
+2 -6
+2 -6
View File
@@ -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)