[texhax] GFS Didot Old Style Figures Issue
Bob Tennent
rdt at cs.queensu.ca
Sat May 17 21:46:59 CEST 2014
>|A brutal way to get bold text figures is:
>|\addfontfeature{AutoFakeBold=2} but fake bold text looks ugly indeed.
>|The ideal would be to devise some code that enables fake bold only in
>|case of figures. I'd rule out manual fine tuning because I use bold only
>|in chapter/section numbers and page numbers on ToC, all things the user
>|has no control of, at least as far as I know.
A user can control the font used for chapter/section numbers and
page numbers by re-defining the relevant commands. Look for the
definitions in the tex/latex/base directory of your distribution.
For example:
\def\@makechapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c at secnumdepth >\m at ne
\if at mainmatter
\huge\bfseries \@chapapp\space \thechapter
\par\nobreak
\vskip 20\p@
\fi
\fi
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
\vskip 40\p@
}}
In fact, if your *only* use of bold is in these places, you just
need to re-define \bfseries.
But instead of using fake bold, consider using a bold font
compatible with your chosen text font. For example, the Latin
alphabet of gfsdidot is "based on Zapf's Palatino"; so use pplj
(mathpazo with old-style numbers) as the family for bold:
\def\bfseries{\fontfamily{pplj}\fontseries{b}\selectfont}
Bob T.
More information about the texhax
mailing list