From: Behdad Esfahbod Date: Thu, 5 Nov 2015 06:24:19 +0000 (-0800) Subject: Skip forming clusters if text is all ASCII X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=497a6c2071cd0638e4c6af07621d01335fd963a9;p=platform%2Fupstream%2FlibHarfBuzzSharp.git Skip forming clusters if text is all ASCII --- diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc index e0331cd..c43b5bc 100644 --- a/src/hb-ot-shape.cc +++ b/src/hb-ot-shape.cc @@ -263,7 +263,8 @@ hb_insert_dotted_circle (hb_buffer_t *buffer, hb_font_t *font) static void hb_form_clusters (hb_buffer_t *buffer) { - if (buffer->cluster_level != HB_BUFFER_CLUSTER_LEVEL_MONOTONE_GRAPHEMES) + if (!(buffer->scratch_flags & HB_BUFFER_SCRATCH_FLAG_HAS_NON_ASCII) || + buffer->cluster_level != HB_BUFFER_CLUSTER_LEVEL_MONOTONE_GRAPHEMES) return; /* Loop duplicated in hb_ensure_native_direction(). */