EB-Garamond
EB-Garamond copied to clipboard
Upright Parentheses And Brackets in Italic Text
I want to typeset all parentheses and brackets upright even in italic text. I can do this in LaTeX using the embrac
package which automatically makes them upright. The downside of this approach is that I have to manually adjust the kerning to avoid collisions. I think it would be the most ideal if the italic font had a stylistic set that keeps parentheses and brackets upright with good kerning to take care of any potential collisions.
\documentclass{article}
\usepackage{fontspec}
\usepackage{embrac}
\setmainfont[ItalicFont = * 12 Italic]{EB Garamond}
\AddEmph{⸢}[0pt, 0pt]{⸣}[0.3em, 0pt]
\ChangeEmph{(}[0.2em, 0pt]{)}[0pt, 0pt]
\ChangeEmph{[}[0.2em, 0pt]{]}[0pt, 0pt]
\begin{document}
\emph{⸢f⸣}
\emph{(just)}
\emph{[just]}
\end{document}