From 68cb4c6d5fcb46d41ec3e5f0c4f26813b16ad9d9 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Thu, 25 Feb 2021 20:59:01 +0000 Subject: [PATCH] Font hack to make sure that italic bold is not too wide. Signed-off-by: Daira Hopwood --- protocol/protocol.tex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/protocol/protocol.tex b/protocol/protocol.tex index 440a04eb..83395996 100644 --- a/protocol/protocol.tex +++ b/protocol/protocol.tex @@ -117,7 +117,12 @@ % XeTeX and LuaLaTeX require the \fontencoding{T1}: % % -\renewcommand{\emph}[1]{\hspace{0.15em}{\fontencoding{T1}\fontfamily{pnc}\selectfont\scalebox{1.02}[0.999]{\textit{#1}}}\hspace{0.02em}} +% New Century Schoolbook italic bold is too wide, so we use a terrible hack +% to change it back to Quattrocentro slanted bold. +\let\oldtextbf\textbf +\newcommand{\bfithack}[1]{{\hspace{-0.1em}\fontfamily{\familydefault}\itshape\bfseries\selectfont\scalebox{0.98}[1.001]{#1}}} +\renewcommand{\emph}[1]{\hspace{0.15em}{\fontencoding{T1}\fontfamily{pnc}\selectfont\scalebox{1.02}[0.999]{% + \let\textbf\bfithack\textit{#1}\let\textbf\oldtextbf}}\hspace{0.02em}} % While we're at it, let's match the tt x height to Quattrocento as well, % and compress it a little to save space in tables.