\definefontfeature[base][
  mode=node, ccmp=yes, calt=yes,
  liga=yes, dlig=yes, hlig=yes,
  kern=yes, mark=yes, mkmk=yes,
  onum=yes, pnum=yes, salt=yes,
  script=latn,
  dlig=yes, cv91=yes]

\definefontfeature[xvicentury][
  ss02=yes, cv01=yes, cv03=yes]

\definefontfamily[mainfont][serif][EBGaramond][features={base, xvicentury}]
\setupbodyfont[mainfont, 9pt]

\startluacode

local function typeset(text)

    local head = nodes.typesetters.hpack(text)

    node.write(head)

end

userdata = userdata or {}

userdata.typeset = typeset

\stopluacode

\define[1]\TTS{\ctxlua{userdata.typeset([[#1]])}}

\showfontkerns

\starttext

faict insist session univers.

\TTS{faict insist session univers.

}

\stoptext
