[ot-font] Use init0
This commit is contained in:
parent
f36ae6f8a8
commit
71f8893eff
|
@ -42,16 +42,16 @@
|
||||||
|
|
||||||
struct hb_ot_font_t
|
struct hb_ot_font_t
|
||||||
{
|
{
|
||||||
inline void init (hb_face_t *face)
|
inline void init0 (hb_face_t *face)
|
||||||
{
|
{
|
||||||
this->face = face;
|
this->face = face;
|
||||||
cmap.init ();
|
cmap.init0 ();
|
||||||
h_metrics.init ();
|
h_metrics.init0 ();
|
||||||
v_metrics.init ();
|
v_metrics.init0 ();
|
||||||
glyf.init ();
|
glyf.init0 ();
|
||||||
cbdt.init ();
|
cbdt.init0 ();
|
||||||
post.init ();
|
post.init0 ();
|
||||||
kern.init ();
|
kern.init0 ();
|
||||||
}
|
}
|
||||||
inline void fini (void)
|
inline void fini (void)
|
||||||
{
|
{
|
||||||
|
@ -83,7 +83,7 @@ _hb_ot_font_create (hb_face_t *face)
|
||||||
if (unlikely (!ot_font))
|
if (unlikely (!ot_font))
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
ot_font->init (face);
|
ot_font->init0 (face);
|
||||||
|
|
||||||
return ot_font;
|
return ot_font;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue