[HarfBuzz] Turning off ligatures and kerning

Nikolay Sivov bunglehead at gmail.com
Fri Jul 1 23:01:28 UTC 2016


On 02.07.2016 1:03, Kelvin Ma wrote:
> && why does harfbuzz still use features if I pass it an empty list? How
> does it know whether to turn them on or off?

Particular shaper implies a set of default GSUB/GPOS features to use. It
makes no sense to have user to specify it every time, user input is
limited to script/language/direction/font, the rest happens
automatically. I don't know if you can disable default feature, e.g.
'fina' for Arabic, but it's easy to test.

> 
> On Fri, Jul 1, 2016 at 6:02 PM, Kelvin Ma <kelvinsthirteen at gmail.com
> <mailto:kelvinsthirteen at gmail.com>> wrote:
> 
>     So that’s what the value member does. thanks! Will it always be
>     either 0 or 1?
>     && what does .tag do?
> 
>     On Fri, Jul 1, 2016 at 5:51 PM, Simon Cozens <simon at simon-cozens.org
>     <mailto:simon at simon-cozens.org>> wrote:
> 
>         On 02/07/2016 07:34, Kelvin Ma wrote:
>         > So I think I figured out how to turn on font features, but how do I turn
>         > ones off that are enabled by default? Like liga or kern?
> 
>         Just set the value to 0 in the features array.
>         See
>         https://github.com/simoncozens/sile/blob/master/src/justenoughharfbuzz.c#L78
> 
>         Simon
> 
> 
> 
> 
> 
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/harfbuzz
> 



More information about the HarfBuzz mailing list