[HarfBuzz] FreeType/Cairo example

Behdad Esfahbod behdad at behdad.org
Tue Feb 22 10:01:35 PST 2011


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().

behdad



More information about the HarfBuzz mailing list