[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,
|
void *user_data = cairo_font_face_get_user_data (font_face,
|
||||||
&hb_cairo_font_init_user_data_user_data_key);
|
&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);
|
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()
|
* face created using hb_cairo_font_face_create_for_face()
|
||||||
* creates an #hb_font_t for a #cairo_scaled_font_t.
|
* 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
|
* Since: REPLACEME
|
||||||
*/
|
*/
|
||||||
typedef void (*hb_cairo_font_init_func_t) (hb_font_t *font,
|
typedef hb_font_t * (*hb_cairo_font_init_func_t) (hb_font_t *font,
|
||||||
cairo_scaled_font_t *scaled_font,
|
cairo_scaled_font_t *scaled_font,
|
||||||
void *user_data);
|
void *user_data);
|
||||||
|
|
||||||
HB_EXTERN void
|
HB_EXTERN void
|
||||||
hb_cairo_font_face_set_font_init_func (cairo_font_face_t *font_face,
|
hb_cairo_font_face_set_font_init_func (cairo_font_face_t *font_face,
|
||||||
|
|
Loading…
Reference in New Issue