<div>
Hi,
</div><div><br></div><div>I'm trying to shape the word "tér" with HarfBuzz, and this is what I get back:</div><div><br></div><div>hb_buffer_get_glyph_infos() after calling hb_buffer_add_utf8():</div><div><br></div><div><div><font face="Courier New">Char #0: { codepoint: 116, mask: 1, cluster: 0, var1: 0, var2: 0 }</font></div><div><font face="Courier New">Char #1: { codepoint: 233, mask: 1, cluster: 1, var1: 0, var2: 0 }</font></div><div><font face="Courier New">Char #2: { codepoint: 114, mask: 1, cluster: 3, var1: 0, var2: 0 }</font></div><div><br></div><div>…and after calling hb_shape():</div><div><br></div><div><font face="Courier New">Glyph #0: { codepoint: 86, mask: 1, cluster: 0, var1: 2, var2: 5 }</font></div><div><font face="Courier New">Glyph #1: { codepoint: 156, mask: 1, cluster: 1, var1: 2, var2: 5 }</font></div><div><font face="Courier New">Glyph #2: { codepoint: 84, mask: 1, cluster: 3, var1: 2, var2: 5 }</font></div></div>
<div><div><br></div><div>I believed up to now that each cluster corresponded to a character in the original string. Why is the letter "é" turned into two clusters here?</div><div><br></div><div>-- </div><div>Lóci</div><div><br></div></div>