diff --git a/src/hb-ot-color-sbix-table.hh b/src/hb-ot-color-sbix-table.hh index bf644a67f..dcfeef46c 100644 --- a/src/hb-ot-color-sbix-table.hh +++ b/src/hb-ot-color-sbix-table.hh @@ -96,9 +96,7 @@ struct sbix { inline void init (hb_face_t *face) { - /* XXX Using public API instead of private method to avoid link problem in dump_emoji. - * Kill that! */ - sbix_blob = OT::Sanitizer(hb_face_get_glyph_count (face)/*face->get_num_glyphs ()*/).sanitize (face->reference_table (HB_OT_TAG_sbix)); + sbix_blob = OT::hb_sanitize_context_t().reference_table (face); sbix_len = hb_blob_get_length (sbix_blob); sbix_table = sbix_blob->as (); }