I want to know: how does \textit commands work? Does it use a different font (italic shaped font)? Or is it just a pure LaTeX command that changes text shape to italic?
My main problem: How to make a backward it-shaped text?
I want to know: how does \textit commands work? Does it use a different font (italic shaped font)? Or is it just a pure LaTeX command that changes text shape to italic?
My main problem: How to make a backward it-shaped text?
Nothing I'd do, but, with XeLaTeX or LuaLaTeX,…
\documentclass{article}
\usepackage{fontspec}
\newfontface{\backitshape}{lmroman10-italic}[
Extension=.otf,
FakeSlant=-0.4,
]
\DeclareTextFontCommand{\textbackit}{\backitshape}
\begin{document}
Some text \textit{in italic} and \textbackit{backwards tilted italic}
\end{document}
Your title question is easy to answer: \textit chooses a different font.
\ECFSkeetchwith\itshapein my answer to that question, you will see backslanted italic. However, the proper way to do it is to design a left-slanted italic font, rather than left-slanting a right-slanted font design. – Steven B. Segletes May 17 '17 at 14:38\itshapecalls a different font. However, there is a function\slshapethat slants the roman font text. The rightward slant is built in to the command, but I think some clever code can redefine the slant value. See this answer for how to employFakeSlantwhen using XeLaTeX: https://tex.stackexchange.com/questions/128562/how-to-use-fakeslant-as-slanted-but-not-italic-font-with-fontspec – Steven B. Segletes May 17 '17 at 14:59\slshapeinvokes a different font too. For example,cmslfor the Computer Modern meta-family. – GuM May 17 '17 at 15:02ttf2tfmprocess and theafm2tfmprocess. Also, slant can be introduced via the.mapfile. – Steven B. Segletes May 17 '17 at 15:12\pdfmaplinethat instructs the PDF viewer to slant that font as you wish. – GuM May 17 '17 at 15:21