1

I got letter spacing working but it doesn't work with spaces? How do I get it to recognize spaces?

\documentclass{memoir}
\usepackage{fontspec}
\setmainfont{Times New Roman}

\begin{document}
\Large\addfontfeatures{LetterSpace=100}{Three separate words}
\end{document}

enter image description here

1 Answer 1

1

Be aware that \Large doesn't take an argument.

\documentclass{memoir}
\usepackage{fontspec}
\setmainfont{Times New Roman}[
  SmallCapsFont=TeX Gyre Termes,
  SmallCapsFeatures={Letters=SmallCaps},
]

\NewDocumentCommand{\spacedscshape}{}{%
  \scshape
  \setlength{\spaceskip}{5\fontdimen2\font plus 5\fontdimen3\font minus \fontdimen3\font}%
  \addfontfeatures{LetterSpace=50}%
}
\DeclareTextFontCommand{\textspacedsc}{\spacedscshape}

\begin{document}

\textspacedsc{Three separate words}

{\Large\spacedscshape Three separate words}

\end{document}

I used small caps in order to avoid being charged of sheep stealing.

enter image description here

1
  • An excellent answer. Mar 13, 2023 at 19:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .