I'm trying to use XeLaTeX to typeset a word in EB Garamond, and I want only two of the letters in the word to have swashes. However, the swashed characters screw up the letterspacing:
\documentclass[12pt]{article}
\usepackage{fontspec}
\setmainfont[LetterSpace=40]{EB Garamond}
\begin{document}
% No swashes, correct letterspacing:
\emph{ANAGRAMME.}
% Two swashes, incorrect letterspacing:
\emph{\addfontfeature{RawFeature=+swsh}A\addfontfeature{RawFeature=-swsh}NA\addfontfeature{RawFeature=+swsh}G\addfontfeature{RawFeature=-swsh}RAMME.}
\end{document}
How can I make the letterspacing consistent around the swashed glyphs?
microtype
to do this because no font change is required. [There is a price in terms of control when you switch from traditional TeX fonts to the use of system fonts.]