# Change font used by moderncv

Using moderncv, is it possible to change the font? I tried to load the Palatino font with:

``````\usepackage{mathpazo}
``````

with no avail.

I'm using Tex Live 2011, and I compile the tex file with `pdflatex`.

-
It should be possible to use a different font with `moderncv`. What happens? Do you get an error message? Does it fail to compile? Does it compile, but use computer modern? Without more information, we can't help. –  Seamus Oct 14 '11 at 7:53
Sorry if I wasn't too much clear. Everything goes just as if the mathpazo package isn't loaded at all (no errors, good pdf generated, but with the same default fonts used by moderncv). –  Nicolás Oct 14 '11 at 16:29

Pass the `roman` option to moderncv:

``````\documentclass[roman]{moderncv}
\usepackage{mathpazo}
``````

In this way only the titles will be in a sans serif font. If you want everything in Palatino,

``````\documentclass{moderncv}
\usepackage{mathpazo}
\renewcommand{\sfdefault}{\rmdefault}
``````
-
Yes! It worked perfectly. Thank you very much! –  Nicolás Oct 14 '11 at 23:08

`moderncv` uses a sans serif font for the entire document. As far as I can tell, there is no sans serif font in `mathpazo`, so you probably want to use the normal Palatino font in that package. To do that, you need to load the package change the sans serif font. Add

``````\usepackage{mathpazo}
\renewcommand{\sfdefault}{ppl}
``````

at the end of your preamble.

-
Your solution also worked correctly. And thank you for the demonstration of the result. –  Nicolás Oct 14 '11 at 23:09