Minor
This commit is contained in:
parent
52b418555b
commit
3224a594dc
|
@ -238,10 +238,9 @@ struct hb_ot_font_t
|
||||||
|
|
||||||
|
|
||||||
static hb_ot_font_t *
|
static hb_ot_font_t *
|
||||||
_hb_ot_font_create (hb_font_t *font)
|
_hb_ot_font_create (hb_face_t *face)
|
||||||
{
|
{
|
||||||
hb_ot_font_t *ot_font = (hb_ot_font_t *) calloc (1, sizeof (hb_ot_font_t));
|
hb_ot_font_t *ot_font = (hb_ot_font_t *) calloc (1, sizeof (hb_ot_font_t));
|
||||||
hb_face_t *face = font->face;
|
|
||||||
|
|
||||||
if (unlikely (!ot_font))
|
if (unlikely (!ot_font))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -423,7 +422,7 @@ _hb_ot_get_font_funcs (void)
|
||||||
void
|
void
|
||||||
hb_ot_font_set_funcs (hb_font_t *font)
|
hb_ot_font_set_funcs (hb_font_t *font)
|
||||||
{
|
{
|
||||||
hb_ot_font_t *ot_font = _hb_ot_font_create (font);
|
hb_ot_font_t *ot_font = _hb_ot_font_create (font->face);
|
||||||
if (unlikely (!ot_font))
|
if (unlikely (!ot_font))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue