[HarfBuzz] FreeType/Cairo example

Khaled Hosny khaledhosny at eglug.org
Sun Feb 20 06:29:49 PST 2011


I'm trying to write a simple HB test and thought using FreeType/Cairo
would be the shortest path. I got the code to shape the text, but glyph
positions are wrong (at least horizontal positions); some glyphs are too
close, others are spaced out than they should.

I'm not sure what is wrong with the attached code, but I'm not familiar
with any of the FreeType/HarfBuzz/Cairo black magic.

Regards,
 khaled

-- 
 Khaled Hosny
 Egyptian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_hb.c
Type: text/x-csrc
Size: 2424 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/harfbuzz/attachments/20110220/79df6b74/attachment.c>


More information about the HarfBuzz mailing list