projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3637ed
)
[Indic] Adjust base after sorting
author
Behdad Esfahbod
<behdad@behdad.org>
Thu, 10 May 2012 09:31:20 +0000
(11:31 +0200)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 10 May 2012 09:31:20 +0000
(11:31 +0200)
src/hb-ot-shape-complex-indic.cc
patch
|
blob
|
history
diff --git
a/src/hb-ot-shape-complex-indic.cc
b/src/hb-ot-shape-complex-indic.cc
index
174e3a9
..
466e924
100644
(file)
--- a/
src/hb-ot-shape-complex-indic.cc
+++ b/
src/hb-ot-shape-complex-indic.cc
@@
-363,9
+363,18
@@
initial_reordering_consonant_syllable (const hb_ot_map_t *map, hb_buffer_t *buff
info[i].indic_position() = info[i - 1].indic_position();
/* We do bubble-sort, skip malicious clusters attempts */
- /* Sit tight, rock 'n roll! */
if (end - start < 20)
+ {
+ /* Sit tight, rock 'n roll! */
hb_bubble_sort (info + start, end - start, compare_indic_order);
+ /* Find base again */
+ base = end;
+ for (i = start; i < end; i++)
+ if (info[i].indic_position() == POS_BASE_C) {
+ base = i;
+ break;
+ }
+ }
/* Setup masks now */