提交 0d5fd168 编写于 作者: B Behdad Esfahbod

Revert "[WIP] [name] Port to fancy serializer machinery"

This reverts commit c7f366fb.

Don't know how it got to master!
上级 72e3eba8
...@@ -279,21 +279,17 @@ struct name ...@@ -279,21 +279,17 @@ struct name
this->format = 0; this->format = 0;
this->count = name_record_idx_to_retain.length; this->count = name_record_idx_to_retain.length;
this->stringOffset = min_size + name_record_idx_to_retain.length * NameRecord::static_size;
auto snap = c->snapshot ();
this->nameRecordZ.serialize (c, this->count);
this->stringOffset = c->length ();
c->revert (snap);
auto src_array = source_name->nameRecordZ.as_array (source_name->count); if (!serialize_name_record (c, source_name, name_record_idx_to_retain))
const void *src_base = &(source_name + source_name->stringOffset); return_trace (false);
const void *dst_base = &(this + this->stringOffset);
+ hb_iter (name_record_idx_to_retain) if (!serialize_strings (c, source_name, plan, name_record_idx_to_retain))
| hb_apply ([&] (unsigned _) { c->copy (src_array[_], src_base, dst_base); }) return_trace (false);
;
assert (this->stringOffset == c->length ()); if (!pack_record_and_strings (this, c, name_record_idx_to_retain.length))
return_trace (false);
return_trace (true); return_trace (true);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册