[HarfBuzz] Disabling OT features for ranges

Jonathan Kew jfkthame at googlemail.com
Tue Feb 19 07:14:00 PST 2013


On 19/2/13 14:40, Lóránt Pintér wrote:> Hi,
 >
 > I'm trying to disable some OpenType features while shaping. I'm trying
 > to shape "VAV VAV" and disable kerning for the first three characters.
 >
 > If I don't set any features, kerning is on for the whole string: OK,
 > this is what I expect
 > If I set "+kern[4:7]", I get what I want: the first "VAV" is not kerned,
 > the second is: OK
 > *If I set "-kern[0:3]", I get kerning disabled for the whole string: NOT
 > what I expect*
 > *If I set "+kern", "-kern[0:3]", I get kerning disabled for the whole
 > string: NOT what I expect*
 > If I set "+kern[0:8]", "-kern[0:3]", I get what I want: the first "VAV"
 > is not kerned, the second is: OK
 >
 > So "+/-kern[x:y]" disables the kerning for the rest of the input unless
 > I specify the whole range with "+kern[0:end]" first. I find it a bit
 > contra-intuitive. Is this how it should work?

This was indeed broken, but should have been fixed recently by commit 
398238a2526d322eb79e255c24634a275473920f. Are you using fully up-to-date 
code?

JK





More information about the HarfBuzz mailing list