[HarfBuzz] Disabling OT features for ranges

Behdad Esfahbod behdad at behdad.org
Tue Feb 19 08:26:09 PST 2013


On 02/19/2013 11:22 AM, Lóránt Pintér wrote:
> I just realized that github is not the freshest source for HarfBuzz. :)
> Anyway, thanks for the quick reply, it is indeed fixed in the current head.

Ah.  Right.  I have to remember to push there manually.  Is there a way to
make github follow an external repo automatically?

b

> -- 
> 
> *Lóránt Pintér*
> 
> Developer at Prezi <http://prezi.com>
> 
> On Tuesday, February 19, 2013 at 4:16 PM, Behdad Esfahbod wrote:
> 
>> On 02/19/2013 09:40 AM, 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?
>>
>> As Jonathan pointed out already, this was surprisingly broken and no one ever
>> noticed until now! But we fixed it last week.
>>
>> -- 
>> behdad
>> http://behdad.org/
> 

-- 
behdad
http://behdad.org/



More information about the HarfBuzz mailing list