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

[cmap] Port to hb_blob_ptr_t

Although didn't need it...
上级 0b0fad3e
......@@ -1014,8 +1014,7 @@ struct cmap
{
inline void init (hb_face_t *face)
{
this->blob = hb_sanitize_context_t().reference_table<cmap> (face);
const cmap *table = this->blob->as<cmap> ();
this->table = hb_sanitize_context_t().reference_table<cmap> (face);
bool symbol;
this->subtable = table->find_best_subtable (&symbol);
this->subtable_uvs = &Null(CmapSubtableFormat14);
......@@ -1051,7 +1050,7 @@ struct cmap
inline void fini (void)
{
hb_blob_destroy (this->blob);
hb_blob_destroy (this->table.get_blob ());
}
inline bool get_nominal_glyph (hb_codepoint_t unicode,
......@@ -1157,7 +1156,7 @@ struct cmap
CmapSubtableFormat4::accelerator_t format4_accel;
hb_blob_t *blob;
hb_blob_ptr_t<cmap> table;
};
protected:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册