[HarfBuzz] Fwd: ZWNJ is being ignored

Georg Duffner g.duffner at gmail.com
Wed May 1 07:04:56 PDT 2013


Am 2013-05-01 15:30, schrieb Jonathan Kew:
> On 1/5/13 13:57, Georg Duffner wrote:
>> Am 2013-05-01 11:30, schrieb Jonathan Kew:
>
>>> Presumably, the way to handle this as a font developer is to explicitly
>>> handle the ZWNJ, by adding something like
>>>
>>>    sub f' zwnj f by f;
>>  >
>>> ahead of the existing rule. That should in effect block the "ligature"
>>> when ZWNJ is present, if I'm understanding correctly.
>>
>> It wouldn’t change anything, as zwnj is ignored in contextual chaining
>> lookups.
>
> Are you sure - have you tried this approach? AIUI, if zwnj is explicitly
> present in the lookahead context, it should be matched, and hence that
> rule would prevent the following rule (without the zwnj) being applied.

Ok, now I understand. I thought, ZWNJ was generally ignored and not 
matched at all.
A new version of the liga lookup now contains

ignore sub f' uni200C;

which works perfectly.

Sorry for the noise.
Best regards,
Georg



More information about the HarfBuzz mailing list