[HarfBuzz] Can't map characters to glyphInfos using clusters

bo samson bo.samson at gmail.com
Tue Mar 3 22:08:25 UTC 2020


Hi all,
When rendering each of my glyphs, I'd like to know if there are, for
example, linebreaks, so that I can skip them and go to the next line. (or
at the very least, skip that character)

According to the documentation, I should be using the *glyphinfo.cluster *for
this, but this info is unusable, even in ClusterLevel 2. The cluster number
will even increment past the length of my string.

Strangely, using the glypIinfo index as the character index is the most
reliable - but not always. It will break with some ligatures.

Does it ring a bell to anyone?

I'm currently using harfbuzz 2.5.3 and freetype 2.10.0, with bindings for c#

Thanks,
-Bo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20200303/a5280d67/attachment.htm>


More information about the HarfBuzz mailing list