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

That fix seems to be obsolete nowadays and returning errors.

I've changed
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:

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

register("after","prepare glyphs","^pala", patch)

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

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

Reply via email to