Is there a way to change the body font in moderncv
(v0.7) without affecting the other fonts (for example \firstnamefont
)?
If I change the font via setting \sfdefault
it influences not only the body font but all fonts of sections and title in the document.
Best Answer
You have some predefined commands to change the fonts of some elements:
\namefont
\titlefont
\addressfont
\sectionfont
\subsectionfont
\hintfont
\quotefont
Redefining those commands you can change the font attributes for the associated elements. Here's a little example in which I changed the font associated to the first four commmands to use Zapf Chancery:
If you want to change the font for some particular argument(s) of, for example, the
\cventry
command you can define your own command to include the necessary redefinition(s); here's an example in which I defined a\Mycventry
command using Zapf Chancery for the last argument of\cventry
:And the output showing the comparison between
\cventry
a and\Mycventry
: