How can I change the kerning of specific small caps, specifically w
and v
in combination with dot and comma?
With XeTeX, I found out how to change upper and lowercases, but no luck with small caps unicode number, at least with Fanwood Text
, Junicode
or EB Garamond
.
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Junicode}
\XeTeXinterchartokenstate=1
\newXeTeXintercharclass\fooV
\newXeTeXintercharclass\foov
\newXeTeXintercharclass\fooDot
\XeTeXcharclass "56=\fooV % Capital V
\XeTeXcharclass "76=\foov % Lowercase V
\XeTeXcharclass "F776=\foov % Small Cap v in Junicode
\XeTeXcharclass "2C=\fooDot % Comma
\XeTeXcharclass "2E=\fooDot % Dot
\XeTeXinterchartoks\fooV\fooDot{\kern-.12em}
\XeTeXinterchartoks\foov\fooDot{\kern-.06em}
\begin{document}
EV,
ev,
\textsc{ev},
\end{document}