I want to italicize the font Play in my document, but the truetype of that font does not have an italic option as seen on https://fonts.google.com/specimen/Play?query=play. Is there a way for me to italicize this font in Latex? I know google docs somehow does it. Also I am using https://github.com/ccebinger/CTAN_Play/blob/master/Play/texmf/tex/latex/Play/Play.sty to install the font Play in Latex if that makes any difference.
Asked
Active
Viewed 97 times
2
1 Answers
4
If you use luatex or xetex, fontspec can slant the font:
This with luatex.
\documentclass{article}
\usepackage{fontspec}
\setmainfont[
AutoFakeSlant=0.3,
BoldFont=Play-Bold.ttf,
ItalicFont=Play-Regular.ttf,
BoldItalicFont=Play-Bold.ttf
]
{Play-Regular.ttf}
\begin{document}
One two \textbf{three} \textit{four}
\end{document}
David Carlisle
- 757,742

Heiko'sanswer from https://tex.stackexchange.com/questions/251888/slant-character-manually-in-tex-coding – MadyYuvi Oct 20 '22 at 16:04fontspechas support for slanting fonts) – David Carlisle Oct 20 '22 at 16:05