From 8220ef8a54bcc94f122d50804c0a5e829de81be1 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Tue, 5 Jun 2018 22:50:53 +0430 Subject: [PATCH] Fix hb_face_count build issue I should've rebased #1002 before the merge, my bad --- src/hb-face.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-face.cc b/src/hb-face.cc index d7e8a27b..f79940e9 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 (); } -- GitLab