未验证 提交 8220ef8a 编写于 作者: E Ebrahim Byagowi 提交者: GitHub

Fix hb_face_count build issue

I should've rebased #1002 before the merge, my bad
上级 32da0c6b
...@@ -53,7 +53,7 @@ hb_face_count (hb_blob_t *blob) ...@@ -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 ();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册