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

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