提交 96828b97 编写于 作者: B Behdad Esfahbod

[layout] Minor

We were returning the accelerator's lookup count.  Returns table's.
They are the same except for OOM cases.  Just shorter code.
上级 73449cd2
...@@ -652,19 +652,7 @@ unsigned int ...@@ -652,19 +652,7 @@ unsigned int
hb_ot_layout_table_get_lookup_count (hb_face_t *face, hb_ot_layout_table_get_lookup_count (hb_face_t *face,
hb_tag_t table_tag) hb_tag_t table_tag)
{ {
if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return 0; return get_gsubgpos_table (face, table_tag).get_lookup_count ();
switch (table_tag)
{
case HB_OT_TAG_GSUB:
{
return hb_ot_face_data (face)->GSUB->lookup_count;
}
case HB_OT_TAG_GPOS:
{
return hb_ot_face_data (face)->GPOS->lookup_count;
}
}
return 0;
} }
static void static void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册