wspr/fontspec — Issue #115: Character Variants don’t work with \addfontfeature in italic
Author: georgd
Created: 2011-10-29 16:17:29+00:00
State: open

In the following example the two groups should give the same results but they don’t:

\documentclass{minimal}
\usepackage{fontspec}
\setmainfont{EB Garamond}
\begin{document}

\textit{\addfontfeature{CharacterVariant=5:0}very}\\
\textit{\addfontfeature{CharacterVariant=5:1}very}\\
\textit{\addfontfeature{CharacterVariant=5:2}very}\\ \textit{\addfontfeature{CharacterVariant=5:3}very}\\
\textit{\addfontfeature{CharacterVariant={4,5:3}}\& very}\\

\fontspec{EB Garamond Italic} very\\
\fontspec[CharacterVariant=5]{EB Garamond Italic}very\\
\fontspec[CharacterVariant=5:0]{EB Garamond Italic}very\\
\fontspec[CharacterVariant=5:1]{EB Garamond Italic}very\\
\fontspec[CharacterVariant=5:2]{EB Garamond Italic}very\\
\fontspec[CharacterVariant=5:3]{EB Garamond Italic}very\\
\fontspec[CharacterVariant={4,5:3}]{EB Garamond Italic}\& very

\end{document}