[NTG-context] Addressing glyphs in Lua

Marco Patzer lists at homerow.info
Tue Oct 9 22:40:20 CEST 2018


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


More information about the ntg-context mailing list