[HarfBuzz] FreeType/Cairo example

Khaled Hosny khaledhosny at eglug.org
Tue Feb 22 10:44:09 PST 2011


On Tue, Feb 22, 2011 at 01:01:35PM -0500, Behdad Esfahbod wrote:
> On 02/20/11 15:29, Khaled Hosny wrote:
> > I'm suspecting that the size setting in FT_Set_Char_Size() and
> > cairo_set_font_size() don't line together, but I'm not sure what would
> > be the correct use of both.
> 
> Instead of setting size on the face yourself, just get a prepared face from
> cairo using cairo_ft_scaled_font_lock_face().

I thought about this already, but it give me much worse spacing; glyps
are too widely spaced that two of them can't fit in the screen, see the
attached file.

Regards,
 Khaled

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


More information about the HarfBuzz mailing list