[NTG-context] bug in \setfontfeature

Hans Hagen pragma at wxs.nl
Wed Jan 2 11:03:45 CET 2008


Wolfgang Schuster wrote:

> you forgot "local dynamics", the following works
> 
>     function fonts.otf.set_dynamics(tfmdata,attribute,features)
>         local shared = tfmdata.shared
>         local dynamics = shared.dynamics
>         if shared then

hm, you need to to test shared before using it, so it really is:

    function fonts.otf.set_dynamics(tfmdata,attribute,features)
        local shared = tfmdata.shared
        if shared then
           local dynamics = shared.dynamics

i wonder what you tested -)

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


More information about the ntg-context mailing list