[hb-cairo] Return hb_font_t* from init-func
This commit is contained in:
parent
d18903e443
commit
f9fc13287b
|
@ -413,7 +413,7 @@ hb_cairo_init_scaled_font (cairo_scaled_font_t *scaled_font,
|
|||
{
|
||||
void *user_data = cairo_font_face_get_user_data (font_face,
|
||||
&hb_cairo_font_init_user_data_user_data_key);
|
||||
init_func (font, scaled_font, user_data);
|
||||
font = init_func (font, scaled_font, user_data);
|
||||
}
|
||||
|
||||
hb_font_make_immutable (font);
|
||||
|
|
|
@ -55,11 +55,13 @@ hb_cairo_font_face_get_face (cairo_font_face_t *font_face);
|
|||
* face created using hb_cairo_font_face_create_for_face()
|
||||
* creates an #hb_font_t for a #cairo_scaled_font_t.
|
||||
*
|
||||
* Return value: the #hb_font_t value to use; in most cases same as @font
|
||||
*
|
||||
* Since: REPLACEME
|
||||
*/
|
||||
typedef void (*hb_cairo_font_init_func_t) (hb_font_t *font,
|
||||
cairo_scaled_font_t *scaled_font,
|
||||
void *user_data);
|
||||
typedef hb_font_t * (*hb_cairo_font_init_func_t) (hb_font_t *font,
|
||||
cairo_scaled_font_t *scaled_font,
|
||||
void *user_data);
|
||||
|
||||
HB_EXTERN void
|
||||
hb_cairo_font_face_set_font_init_func (cairo_font_face_t *font_face,
|
||||
|
|
Loading…
Reference in New Issue