On 10/9/2018 10:40 PM, Marco Patzer wrote:
Hi!

I have two questions regarding addressing glyphs in Lua:

1) How to address glyphs in slots as e.g. U+F0029?
2) How to address glyphs by name?

Use:

\startluacode
   fonts.handlers.otf.addfeature {
     name = "foo",
     type = "substitution",
     data      = { [0xF0029] = 0xF0030 }, -- ← doesn't work
   }
\stopluacode
this is a mnwe .. make a mwe with at least a font ... anyway, glyph names should normally work (given that they are sane ones, because in context we strip some)

(messing with badly names privates is asking for troubles)

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to