[NTG-context] contextual alternates

Hans Hagen pragma at wxs.nl
Mon Jan 26 10:04:53 CET 2015


On 1/25/2015 7:30 PM, Pablo Rodriguez wrote:
> On 01/25/2015 05:20 PM, Hans Hagen wrote:
>> On 1/25/2015 3:52 PM, Jan Tosovsky wrote:
>>> On 2015-01-25 Hans Hagen wrote:
>>>> On 1/24/2015 2:12 PM, Pablo Rodriguez wrote:
>>>>> [...]
>>>>> The Pecita font is licensed under the Open Font License and it can be
>>>>> downloaded at http://pecita.eu/b/Pecita.otf.
>>>>>
>>>>> For some strange reason, the contextual alternates feature isn’t
>>>>> working.
>>>>
>>>> maybe they depend on other features being set
>>>
>>> There are lots of definitions in calt table, but referenced via 'lookup'
>>> mechanism.
>>>
>>> lookup calt5 {
>>> #    sub @calt30' @calt30' by [a.I_ ... f_dotlessi._I];
>>> } calt5;
>>>
>>> language ENG ; # English
>>>    script DFLT;
>>> lookup calt5;
>>>
>>> To me it is quite unusual.
>>
>> so the script / language combination is default / english (dflt/eng)
>
> Many thanks for your replies, Hans and Jan.
>
> I’m afraid that the following doesn’t work:
>
> \definefontfeature[default][default][script=latn,language=eng, calt=yes]

because it's dflt (default) and not latn

> \definefontfamily[mainface][rm][Pecita]
> \setupbodyfont[mainface]
> \starttext
> \input zapf
> \stoptext
>
> Many thanks for your help,
>
>
> Pablo
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list