Fix hb_face_count build issue
I should've rebased #1002 before the merge, my bad
This commit is contained in:
parent
32da0c6bc4
commit
8220ef8a54
|
@ -53,7 +53,7 @@ hb_face_count (hb_blob_t *blob)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
hb_blob_t *sanitized = OT::Sanitizer<OT::OpenTypeFontFile> ().sanitize (blob);
|
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 ();
|
return ot.get_face_count ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue