提交 be9e307a 编写于 作者: B Behdad Esfahbod

[ot] Ensure layout in hb_ot_layout_table_get_lookup_count()

上级 d9066afd
...@@ -601,6 +601,7 @@ unsigned int ...@@ -601,6 +601,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;
switch (table_tag) switch (table_tag)
{ {
case HB_OT_TAG_GSUB: case HB_OT_TAG_GSUB:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册