Inspired by An example of changing kerning of a font in LuaLaTeX I decided to try to change the kerning for some letter combinations together with parentheses which have been bothering me in my favorite font. However, what to me seemed like the obvious approach did not work. Further testing made me realize that the font did not matter my approach did not work no matter what font. So, my guess is that the \(
is not the right way but what is?
bonum.fea
languagesystem DFLT dflt;
languagesystem latn dflt;
feature kern {
pos \( \j 1000;
} kern;
example.tex
\documentclass[11pt,article,oneside]{article}
\usepackage{fontspec}
\begin{document}
\setmainfont[FeatureFile=bonum.fea]{TeX Gyre Bonum}
(j)
\end{document}
Result:
pos parenleft j 500;
. I think (the specification is a bit vage adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html) the backslash is only needed/allowed if the glyph name can clash with some keyword. (It worked with the backslash in the answer you linked to, so something has changed in the meantime).\parenleft
orparenleft
are fine, but not\(
since there is no glyph named(
(and can’t be, it is an illegal character in glyph names).