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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________