[ot-font] Use init0

This commit is contained in:
Behdad Esfahbod 2018-08-25 23:27:45 -07:00
parent f36ae6f8a8
commit 71f8893eff
1 changed files with 9 additions and 9 deletions

View File

@ -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;
} }