[font/draw] Slant drawings

Need to update hb_font_set_synthetic_slant() docs now that we do this.
This commit is contained in:
Behdad Esfahbod 2022-02-07 17:55:01 -06:00
parent aa5c7a3811
commit 59067db9f4
2 changed files with 2 additions and 2 deletions

View File

@ -634,7 +634,7 @@ hb_ft_get_glyph_shape (hb_font_t *font HB_UNUSED,
0, /* delta */ 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, FT_Outline_Decompose (&ft_face->glyph->outline,
&outline_funcs, &outline_funcs,

View File

@ -265,7 +265,7 @@ hb_ot_get_glyph_shape (hb_font_t *font,
hb_draw_funcs_t *draw_funcs, void *draw_data, hb_draw_funcs_t *draw_funcs, void *draw_data,
void *user_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; if (font->face->table.glyf->get_path (font, glyph, draw_session)) return;
#ifndef HB_NO_CFF #ifndef HB_NO_CFF
if (font->face->table.cff1->get_path (font, glyph, draw_session)) return; if (font->face->table.cff1->get_path (font, glyph, draw_session)) return;