Is it possible to add math kerns (aka cut-ins or staircase kerning) to OpenType math fonts? If yes, how?
I am personally looking for something which works for LuaLaTeX (using fonts.handlers.otf.addfeature?), but I would be happy for other solutions as well.
For example, I want to add a bottom right math kern to \lmathccal{O}.
\documentclass{article}
\usepackage[newcmbb]{fontsetup}
% Below code copied from here: https://tex.stackexchange.com/a/373539/128462.
\DeclareFontFamily{U}{mathc}{}
\DeclareFontShape{U}{mathc}{m}{it}%
{<->s*[1.03] mathc10}{}
\DeclareMathAlphabet{\lmathccal}{U}{mathc}{m}{it}
% \DeclareMathAlphabet\cmmathcal{OMS}{cmsy}{m}{n}
% \renewcommand{\symcal}{\lmathccal}
\begin{document}
\(\lmathccal{O}_i\) \(\symcal{O}_i\)
\end{document}



Uchanges the encoding so it is no longer unicode. (2) kerning pairs, as far as I know, are always intra-font so would not apply unless you created a combination virtual font.