# Kerning with realscripts and LuaLaTex

If I use lining superscript numbers for footnotes with realscripts package, I realize that it uses locally \addfontfeature, so there is no kerning. Please, consider this trivial case:

\documentclass[a4paper,12pt]{article}
\usepackage{fontspec}
\usepackage[english]{babel}
\babelfont[english]{rm}[Ligatures=TeX,Numbers={Proportional,OldStyle}]{Source Serif Pro}
\usepackage{realscripts}
\begin{document}
To be, or not to be\footnote{xxx}.
\end{document}


I adjusted some kerning into the font to eliminate excessive space between the superscript number and following period (or comma), but it does't work for the aforementioned reasons.

1. is the only method to have real lining superscript to resort to realscripts?
• There’s fnpct, but it’s broken at the moment. The problem has been reported. – Thérèse Feb 10 at 2:26
• You haven’t explained how you want the output to look, so I can’t say whether fnpct will satisfy you once it’s no longer in a broken state. But its manual describes very many options. – Thérèse Feb 10 at 19:31