提交 4151c284 编写于 作者: B Behdad Esfahbod

[GDEF] Move more code

上级 4f21703f
......@@ -413,7 +413,15 @@ struct GDEF
struct accelerator_t
{
HB_INTERNAL void init (hb_face_t *face);
inline void init (hb_face_t *face)
{
this->table = hb_sanitize_context_t().reference_table<GDEF> (face);
if (unlikely (this->table->is_blacklisted (this->table.get_blob (), face)))
{
hb_blob_destroy (this->table.get_blob ());
this->table = hb_blob_get_empty ();
}
}
inline void fini (void)
{
......
......@@ -198,17 +198,6 @@ OT::GDEF::is_blacklisted (hb_blob_t *blob,
return false;
}
void
OT::GDEF::accelerator_t::init (hb_face_t *face)
{
this->table = hb_sanitize_context_t().reference_table<GDEF> (face);
if (unlikely (this->table->is_blacklisted (this->table.get_blob (), face)))
{
hb_blob_destroy (this->table.get_blob ());
this->table = hb_blob_get_empty ();
}
}
static void
_hb_ot_layout_set_glyph_props (hb_font_t *font,
hb_buffer_t *buffer)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册