Add a comment for RTL shaping
This commit is contained in:
parent
1760fb9db2
commit
b59d1bda8b
@ -720,6 +720,7 @@ shape_run(Cell *first_cell, index_type num_cells, Font *font) {
|
|||||||
num_codepoints_used_by_glyph = UINT32_MAX;
|
num_codepoints_used_by_glyph = UINT32_MAX;
|
||||||
} else {
|
} else {
|
||||||
next_cluster = G(info)[G(glyph_idx) + 1].cluster;
|
next_cluster = G(info)[G(glyph_idx) + 1].cluster;
|
||||||
|
// RTL languages like Arabic have decreasing cluster numbers
|
||||||
if (next_cluster != cluster) num_codepoints_used_by_glyph = cluster > next_cluster ? cluster - next_cluster : next_cluster - cluster;
|
if (next_cluster != cluster) num_codepoints_used_by_glyph = cluster > next_cluster ? cluster - next_cluster : next_cluster - cluster;
|
||||||
}
|
}
|
||||||
if (!current_group->num_glyphs) {
|
if (!current_group->num_glyphs) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user