[graphite] Remove script handling

https://github.com/harfbuzz/harfbuzz/issues/3439#issuecomment-1442650148
This commit is contained in:
Behdad Esfahbod 2023-02-23 21:36:17 -07:00
parent 5ab7f7a7d4
commit ae981eec8e
1 changed files with 1 additions and 9 deletions

View File

@ -263,16 +263,8 @@ _hb_graphite2_shape (hb_shape_plan_t *shape_plan HB_UNUSED,
/* TODO ensure_native_direction. */
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,
script_tag,
nullptr, nullptr);
seg = gr_make_seg (nullptr, grface,
count ? script_tag[count - 1] : HB_OT_TAG_DEFAULT_SCRIPT,
HB_TAG_NONE, // https://github.com/harfbuzz/harfbuzz/issues/3439#issuecomment-1442650148
feats,
gr_utf32, chars, buffer->len,
2 | (hb_buffer_get_direction (buffer) == HB_DIRECTION_RTL ? 1 : 0));