From 1e816d62efe1b3540ef605092b97794e68ec0832 Mon Sep 17 00:00:00 2001 From: David Corbett Date: Thu, 11 Oct 2018 20:37:49 -0400 Subject: [PATCH] Fix Indic script tags in Graphite --- src/hb-graphite2.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-graphite2.cc b/src/hb-graphite2.cc index e8d7c348b..6b2b6f19d 100644 --- a/src/hb-graphite2.cc +++ b/src/hb-graphite2.cc @@ -279,8 +279,8 @@ _hb_graphite2_shape (hb_shape_plan_t *shape_plan, /* TODO ensure_native_direction. */ - hb_tag_t script_tag[2]; - unsigned int count = 2; + hb_tag_t script_tag[HB_OT_MAX_TAGS_PER_SCRIPT]; + unsigned int count = HB_OT_MAX_TAGS_PER_SCRIPT; hb_ot_tags_from_script_and_language (hb_buffer_get_script (buffer), HB_LANGUAGE_INVALID, &count,