[font/draw] Slant drawings
Need to update hb_font_set_synthetic_slant() docs now that we do this.
This commit is contained in:
parent
aa5c7a3811
commit
59067db9f4
|
@ -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,
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue