On 11/17/2013 12:23 PM, honyk wrote:
Hello Everyone,
I am trying to fix a Palatino small caps issue using the procedure explained
here:
http://wiki.contextgarden.net/Palatino_Linotype_under_MKIV
That fix seems to be obsolete nowadays and returning errors.
I've changed
fonts.otf.enhancers.patches["^pala"]
to
fonts.handlers.otf.enhancers.patches["^pala"]
which compiles, but it does nothing.
I've also tried this variant, but that 'patch' function is never called even
though I clear my font cache every run:
\startluacode
local fonts = fonts
local otf = fonts.handlers.otf
local patches = otf.enhancers.patches
local register = patches.register
local report = patches.report
function patch (data,filename)
report("I am here")
report("processing data %s", table.serialize(data))
end
register("after","prepare glyphs","^pala", patch)
\stopluacode
Any idea?
patches are applied when a font is cached so you need to wipe the cache
after defining such a patch
there are several ways to apply patches runtime, see *.lfg files (and
also fonts-mkiv.pdf)
Hans
--
-----------------------------------------------------------------
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 : ntg-context@ntg.nl / 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
___________________________________________________________________________________