Fix hb_face_count build issue

I should've rebased #1002 before the merge, my bad
This commit is contained in:
Ebrahim Byagowi 2018-06-05 22:50:53 +04:30 committed by GitHub
parent 32da0c6bc4
commit 8220ef8a54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ hb_face_count (hb_blob_t *blob)
return 0;
hb_blob_t *sanitized = OT::Sanitizer<OT::OpenTypeFontFile> ().sanitize (blob);
const OT::OpenTypeFontFile& ot = *OT::Sanitizer<OT::OpenTypeFontFile>::lock_instance (sanitized);
const OT::OpenTypeFontFile& ot = *sanitized->as<OT::OpenTypeFontFile> ();
return ot.get_face_count ();
}