[NTG-context] beta

Hans Hagen pragma at wxs.nl
Sun Mar 27 13:05:38 CEST 2011


On 27-3-2011 8:52, Wolfgang Schuster wrote:
>
> Am 26.03.2011 um 22:04 schrieb Thomas Schmitz:
>
>> I may be misunderstanding things, but I can't get my font features to work with the latest beta, possibly because of this change, or I'm doing something wrong.
>
> font-ini.mkiv (enable \inheritfromfontclass):
>
> - \newconditional\inheritfromfontclass % used in \definefont and \definedfont
> + \newconditional\inheritfromfontclass \settrue\inheritfromfontclass % used in \definefont and \definedfont

indeed (actually this conditional is introduced because i noticed that 
there was unexpected inheritance going on - esp the mp default font)

> font-ctx.lua (check “classfeatures” before “fontfeatures”):
>
> function definers.stage_two(global,cs,str,size,classfeatures,fontfeatures,classfallbacks,fontfallbacks,
>          mathsize,textsize,relativeid,classgoodies,goodies)
>      ...
>      if detail and detail ~= "" then
>          specification.method, specification.detail = method or "*", detail
>      elseif specification.detail and specification.detail ~= "" then
>          -- already set
> -   elseif fontfeatures and fontfeatures ~= "" then
> -       specification.method, specification.detail = "*", fontfeatures
> -   elseif classfeatures and classfeatures ~= "" then
> -       specification.method, specification.detail = "*", classfeatures
> +   elseif classfeatures and classfeatures ~= "" then
> +       specification.method, specification.detail = "*", classfeatures
> +   elseif fontfeatures and fontfeatures ~= "" then
> +       specification.method, specification.detail = "*", fontfeatures
>      end
>      ...
>      statistics.stoptiming(fonts)
> end

hm, so class features should always win? maybe we should make that 
configureable .. i cannot oversee the implication of this


-----------------------------------------------------------------
                                           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