From 59067db9f47fa2d0fc6cdc4adcc38d63601f9123 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 7 Feb 2022 17:55:01 -0600 Subject: [PATCH] [font/draw] Slant drawings Need to update hb_font_set_synthetic_slant() docs now that we do this. --- src/hb-ft.cc | 2 +- src/hb-ot-font.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ft.cc b/src/hb-ft.cc index 8a10a61ee..40311e1b9 100644 --- a/src/hb-ft.cc +++ b/src/hb-ft.cc @@ -634,7 +634,7 @@ hb_ft_get_glyph_shape (hb_font_t *font HB_UNUSED, 0, /* delta */ }; - hb_draw_session_t draw_session (draw_funcs, draw_data); + hb_draw_session_t draw_session (draw_funcs, draw_data, font->slant_xy); FT_Outline_Decompose (&ft_face->glyph->outline, &outline_funcs, diff --git a/src/hb-ot-font.cc b/src/hb-ot-font.cc index 6c1491c62..77d3f639d 100644 --- a/src/hb-ot-font.cc +++ b/src/hb-ot-font.cc @@ -265,7 +265,7 @@ hb_ot_get_glyph_shape (hb_font_t *font, hb_draw_funcs_t *draw_funcs, void *draw_data, void *user_data) { - hb_draw_session_t draw_session (draw_funcs, draw_data); + hb_draw_session_t draw_session (draw_funcs, draw_data, font->slant_xy); if (font->face->table.glyf->get_path (font, glyph, draw_session)) return; #ifndef HB_NO_CFF if (font->face->table.cff1->get_path (font, glyph, draw_session)) return;