10

Using fontspec with Luatex it is possible to create a fake slant and use that as italic should no italics be around:

\setmainfont[ AutoFakeSlant=0.15 ]
            {FontName}

However, also if an italic version exist this faked slant will be used both for \itshape and \slshape. How can I keep using the shipped italic font defined by the ItalicFont= parameter to \setmainfont but use fake slant for \slshape?

11

An example is Linux Libertine, that has no slanted version:

\documentclass{article}
\usepackage{fontspec}
\setmainfont[
  SlantedFont={Linux Libertine O},
  SlantedFeatures={FakeSlant=0.15},
  BoldSlantedFeatures={FakeSlant=0.15},
]{Linux Libertine O}

\begin{document}
\textit{abc}\textsl{abc}\textbf{\textsl{abc}}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.