mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-26 01:11:25 +01:00
[Indic] Adjust base after sorting
This commit is contained in:
1 parent
d3637edb24
commit
a391ff50b9
1 file changed
+10
-1
@@ -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 */
|
||||
|
||||
|
||||
Reference in new issue
Block a user