diff --git a/src/hb-face.cc b/src/hb-face.cc index d7e8a27ba2b0a45c85721640c1954bc5908c5c44..f79940e933331b086b7151c5fe5587f9aca493c2 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 (); }