[HarfBuzz] Question on converting UTF-8 codepoints to complex glyphs

Behdad Esfahbod behdad at behdad.org
Mon Apr 8 20:46:56 UTC 2019


On Mon, Apr 8, 2019 at 4:12 PM Paul Daughetee <Daughetee at finaldraft.com>
wrote:

> I’m new to HarfBuzz and attempting to use it for converting a UTF-8 string
> that contains one or more sets of codepoints that should combine to form
> single complex glyphs to the correct string of glyphs. I’ve followed
> numerous examples and they all lead me to the point where I use
> hb_buffer_get_glyph_infos to get what I thought would be a hb_glyph_info
> object that contains the codepoints for the glyphs I seek. So my first
> question is as follows. Is that what I should be getting? I ask because I’m
> not getting what I would expect to get.
>

Yes.



> I can’t even successfully get a complex glyph to represent the combination
> of the letter A and the grave accent. So if I’m just confused as to how or
> what HarfBuzz does, please help me find a better path. Thanks!
>

What do you get?  A + grave-accent only forms one glyph if the font was
designed so.  It may very well be represented by two glyphs.

>
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/harfbuzz



-- 
behdad
http://behdad.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20190408/06f16deb/attachment.html>


More information about the HarfBuzz mailing list