diff --git a/src/hb-face.cc b/src/hb-face.cc index d7e8a27ba..f79940e93 100644 --- a/src/hb-face.cc +++ b/src/hb-face.cc @@ -53,7 +53,7 @@ hb_face_count (hb_blob_t *blob) return 0; hb_blob_t *sanitized = OT::Sanitizer ().sanitize (blob); - const OT::OpenTypeFontFile& ot = *OT::Sanitizer::lock_instance (sanitized); + const OT::OpenTypeFontFile& ot = *sanitized->as (); return ot.get_face_count (); }