From 21cba9e5bc747da7c64f3dc83a9fc16e0678a2dc Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 15 Nov 2024 15:21:03 -0700 Subject: [PATCH] [cairo] Fix scaling in paint_color_glyph Fixes https://github.com/harfbuzz/harfbuzz/issues/4938 --- src/hb-cairo.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-cairo.cc b/src/hb-cairo.cc index 4d22ae059..4e5797253 100644 --- a/src/hb-cairo.cc +++ b/src/hb-cairo.cc @@ -180,7 +180,7 @@ hb_cairo_paint_color_glyph (hb_paint_funcs_t *pfuncs HB_UNUSED, hb_position_t x_scale, y_scale; hb_font_get_scale (font, &x_scale, &y_scale); - cairo_scale (cr, x_scale, y_scale); + cairo_scale (cr, x_scale, -y_scale); cairo_glyph_t cairo_glyph = { glyph, 0, 0 }; cairo_set_scaled_font (cr, c->scaled_font);