% \begin{macro}{\kern_horizontal:n, \kern_vertical:n}
% \TeX{} does not treat kerns differently in horizontal and vertical mode.
% As we want skips and kerns to have similar behaviour, we try to get similar
% results.
% \begin{macrocode}
\cs_new_protected:Npn \kern_horizontal:n #1
{
\mode_leave_vertical:
\tex_kern:D \dim_eval:n {#1} \exp_stop_f:
}
\cs_new_protected:Npn \kern_vertical:n #1
{
\mode_if_vertical:F
{ \par }
\tex_kern:D \dim_eval:n {#1} \exp_stop_f: