Thanks a lot!
On Sat, Apr 12, 2025 at 3:38 AM Hans Hagen via ntg-context <
[email protected]> wrote:
> On 4/12/2025 2:35 AM, Mohammad Hossein Bateni wrote:
> > Hello,
> >
> > \addff (and \doaddfeature) no longer seem to work. What's the
> > alternative to add/remove features on the fly?
>
> nothing changed there
>
> move the luacode before the \starttext or any place before the main font
> is defined because features are bound to fonts so new ones have to be
> defined beforehanbd
>
> > MNWE:
> >
> > ===
> > \starttext
> > \startluacode
> > fonts.handlers.otf.addfeature{
> > name = "fanum",
> > type = "substitution",
> > data = {
> > [0x30] = 0x41 -- '0' => 'A'
> > }
> > }
> > \stopluacode
> > \definefontfeature[fanum][fanum=yes]
> > {0123
> > %\addff{fanum}
> > \doaddfeature{fanum}
> > 0123 %% does not work
> > \definedfont[dejavusans*fanum]
> > 0123 %% works
> > } 0123
> > \stoptext
> > ===
> >
> >
> ___________________________________________________________________________________
> > If your question is of interest to others as well, please add an entry
> to the Wiki!
> >
> > maillist : [email protected] /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> > webpage : https://www.pragma-ade.nl / https://context.aanhet.net
> (mirror)
> > archive : https://github.com/contextgarden/context
> > wiki : https://wiki.contextgarden.net
> >
> ___________________________________________________________________________________
>
>
> --
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : [email protected] /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___________________________________________________________________________________
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________