提交 4696624a 编写于 作者: R Rod Sheeter

[subset] maxp wrong int type, note to use copy_writable_or_fail

上级 3ed70e5e
......@@ -48,7 +48,7 @@ struct maxp
return numGlyphs;
}
inline void set_num_glyphs (uint16_t count)
inline void set_num_glyphs (unsigned int count)
{
numGlyphs.set (count);
}
......@@ -64,6 +64,7 @@ struct maxp
inline bool subset (hb_subset_plan_t *plan) const
{
hb_blob_t *maxp_blob = OT::Sanitizer<OT::maxp>().sanitize (hb_face_reference_table (plan->source, HB_OT_TAG_maxp));
// TODO hb_blob_copy_writable_or_fail
hb_blob_t *maxp_prime_blob = hb_blob_create_sub_blob (maxp_blob, 0, -1);
hb_blob_destroy (maxp_blob);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册