diff options
author | Youngbok Shin <youngb.shin@samsung.com> | 2016-06-15 10:53:20 +0900 |
---|---|---|
committer | Youngbok Shin <youngb.shin@samsung.com> | 2016-06-15 10:55:08 +0900 |
commit | 087e8c5d58be057cb77192932cd7fa8f7aacf1a5 (patch) | |
tree | 54583ba7d5a7ced507152dde121fd56264bfcb01 /src/hb-ot-shape-complex-arabic-fallback.hh | |
parent | 4b524cd9449699e546a0991326d12ee2c915fab3 (diff) | |
download | harfbuzz-087e8c5d58be057cb77192932cd7fa8f7aacf1a5.tar.gz harfbuzz-087e8c5d58be057cb77192932cd7fa8f7aacf1a5.tar.bz2 harfbuzz-087e8c5d58be057cb77192932cd7fa8f7aacf1a5.zip |
Imported Upstream version 1.2.7
Change-Id: I3f18de6ca717f4dd265ba99ba7f886b327e52b66
Diffstat (limited to 'src/hb-ot-shape-complex-arabic-fallback.hh')
-rw-r--r-- | src/hb-ot-shape-complex-arabic-fallback.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hb-ot-shape-complex-arabic-fallback.hh b/src/hb-ot-shape-complex-arabic-fallback.hh index a77f24e..d97d285 100644 --- a/src/hb-ot-shape-complex-arabic-fallback.hh +++ b/src/hb-ot-shape-complex-arabic-fallback.hh @@ -75,9 +75,9 @@ arabic_fallback_synthesize_lookup_single (const hb_ot_shape_plan_t *plan HB_UNUS if (!num_glyphs) return NULL; - /* Bubble-sort! + /* Bubble-sort or something equally good! * May not be good-enough for presidential candidate interviews, but good-enough for us... */ - hb_bubble_sort (&glyphs[0], num_glyphs, OT::GlyphID::cmp, &substitutes[0]); + hb_stable_sort (&glyphs[0], num_glyphs, OT::GlyphID::cmp, &substitutes[0]); OT::Supplier<OT::GlyphID> glyphs_supplier (glyphs, num_glyphs); OT::Supplier<OT::GlyphID> substitutes_supplier (substitutes, num_glyphs); @@ -126,7 +126,7 @@ arabic_fallback_synthesize_lookup_ligature (const hb_ot_shape_plan_t *plan HB_UN first_glyphs_indirection[num_first_glyphs] = first_glyph_idx; num_first_glyphs++; } - hb_bubble_sort (&first_glyphs[0], num_first_glyphs, OT::GlyphID::cmp, &first_glyphs_indirection[0]); + hb_stable_sort (&first_glyphs[0], num_first_glyphs, OT::GlyphID::cmp, &first_glyphs_indirection[0]); /* Now that the first-glyphs are sorted, walk again, populate ligatures. */ for (unsigned int i = 0; i < num_first_glyphs; i++) |