[coretext] Use input clusters
Before, this shaper was returning UTF-16 cluster indices instead of returning whatever cluster values the user had had set up in the buffer. Ouch!
This commit is contained in:
parent
a6b8dc8742
commit
3c41ccb535
@ -758,9 +758,7 @@ retry:
|
|||||||
}
|
}
|
||||||
|
|
||||||
info->codepoint = notdef;
|
info->codepoint = notdef;
|
||||||
/* TODO We have to fixup clusters later. See vis_clusters in
|
info->cluster = log_clusters[j];
|
||||||
* hb-uniscribe.cc for example. */
|
|
||||||
info->cluster = j;
|
|
||||||
|
|
||||||
info->mask = advance;
|
info->mask = advance;
|
||||||
info->var1.u32 = 0;
|
info->var1.u32 = 0;
|
||||||
@ -820,7 +818,7 @@ retry:
|
|||||||
hb_glyph_info_t *info = &buffer->info[buffer->len];
|
hb_glyph_info_t *info = &buffer->info[buffer->len];
|
||||||
|
|
||||||
info->codepoint = glyphs[j];
|
info->codepoint = glyphs[j];
|
||||||
info->cluster = string_indices[j];
|
info->cluster = log_clusters[string_indices[j]];
|
||||||
|
|
||||||
/* Currently, we do all x-positioning by setting the advance, we never use x-offset. */
|
/* Currently, we do all x-positioning by setting the advance, we never use x-offset. */
|
||||||
info->mask = advance;
|
info->mask = advance;
|
||||||
|
Loading…
Reference in New Issue
Block a user