Partially switch ot shaper to shape_plan
diff --git a/src/hb-font.cc b/src/hb-font.cc index 1261077..5a3219a 100644 --- a/src/hb-font.cc +++ b/src/hb-font.cc
@@ -589,10 +589,14 @@ NULL, /* user_data */ NULL, /* destroy */ - NULL, /* ot_layout */ - 0, /* index */ - 1000 /* upem */ + 1000, /* upem */ + + { +#define HB_SHAPER_IMPLEMENT(shaper) HB_SHAPER_DATA_INVALID, +#include "hb-shaper-list.hh" +#undef HB_SHAPER_IMPLEMENT + } }; @@ -613,8 +617,6 @@ face->user_data = user_data; face->destroy = destroy; - face->ot_layout = _hb_ot_layout_create (face); - face->upem = 0; return face; @@ -707,8 +709,6 @@ { if (!hb_object_destroy (face)) return; - _hb_ot_layout_destroy (face->ot_layout); - #define HB_SHAPER_IMPLEMENT(shaper) HB_SHAPER_DATA_DESTROY(shaper, face); #include "hb-shaper-list.hh" #undef HB_SHAPER_IMPLEMENT @@ -877,7 +877,13 @@ const_cast<hb_font_funcs_t *> (&_hb_font_funcs_nil), /* klass */ NULL, /* user_data */ - NULL /* destroy */ + NULL, /* destroy */ + + { +#define HB_SHAPER_IMPLEMENT(shaper) HB_SHAPER_DATA_INVALID, +#include "hb-shaper-list.hh" +#undef HB_SHAPER_IMPLEMENT + } }; return const_cast<hb_font_t *> (&_hb_font_nil);