[draw] Rename user_data to draw_data
This commit is contained in:
parent
3b915389b5
commit
92e6e53b30
|
@ -35,7 +35,7 @@
|
||||||
* @font: a font object
|
* @font: a font object
|
||||||
* @glyph: a glyph id
|
* @glyph: a glyph id
|
||||||
* @funcs: draw callbacks object
|
* @funcs: draw callbacks object
|
||||||
* @user_data: parameter you like be passed to the callbacks when are called
|
* @draw_data: parameter you like be passed to the callbacks when are called
|
||||||
*
|
*
|
||||||
* Draw a glyph.
|
* Draw a glyph.
|
||||||
*
|
*
|
||||||
|
@ -46,13 +46,13 @@ void
|
||||||
hb_font_draw_glyph (hb_font_t *font,
|
hb_font_draw_glyph (hb_font_t *font,
|
||||||
hb_codepoint_t glyph,
|
hb_codepoint_t glyph,
|
||||||
hb_draw_funcs_t *funcs,
|
hb_draw_funcs_t *funcs,
|
||||||
void *user_data)
|
void *draw_data)
|
||||||
{
|
{
|
||||||
if (unlikely (funcs == &Null (hb_draw_funcs_t) ||
|
if (unlikely (funcs == &Null (hb_draw_funcs_t) ||
|
||||||
glyph >= font->face->get_num_glyphs ()))
|
glyph >= font->face->get_num_glyphs ()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
draw_helper_t draw_helper (funcs, user_data);
|
draw_helper_t draw_helper (funcs, draw_data);
|
||||||
if (font->face->table.glyf->get_path (font, glyph, draw_helper)) return;
|
if (font->face->table.glyf->get_path (font, glyph, draw_helper)) return;
|
||||||
#ifndef HB_NO_CFF
|
#ifndef HB_NO_CFF
|
||||||
if (font->face->table.cff1->get_path (font, glyph, draw_helper)) return;
|
if (font->face->table.cff1->get_path (font, glyph, draw_helper)) return;
|
||||||
|
|
Loading…
Reference in New Issue