[HarfBuzz] Harfbuzz features and layout

Khaled Hosny khaledhosny at eglug.org
Wed Jul 30 04:03:56 PDT 2014


On Wed, Jul 30, 2014 at 01:42:42PM +1000, Edu García wrote:
> Hi there,
> 
> First of all, just let me say that Harfbuzz seems like an awesome piece of
> engineering, and the API seems a breeze to use. I've done a very simple
> example in just a few hours, and I'm very happy about that :).
> 
> I have two (very noob, sorry) questions, tough:
> 
> 1) I want to enable (or disable) ligatures. I've seen that when using a
> font like Adobe Garamond Pro, ligatures are automatically used. I thought I
> had to pass a feature to hb_shape() to do that? Also, is there any way of
> enabling only some kind of ligatures, like historical ones?

Some features are enabled by default, to you can disable default
features/enable non-default features by passing appropriate
hb_feature_t's to hb_shape_full().

Regards,
Khaled


More information about the HarfBuzz mailing list