How can I change the title font size (First name, Family Name) in a resume written using moderncv package?

1 Answer 1


It is controlled by \namefont, so you just need to redefine that. As an example, the standard definition for the casual style is:


Similarly, the following macros control the fonts of other elements (the macro names should speak for themselves): \titlefont, \addressfont, \quotefont, \sectionfont, \subsectionfont, \hintfont and \pagenumberfont.

  • 5
    This worked. Thanks! Does the second number (40) indicate the spacing left after title? Also, what do mdseries and upshape stand for?
    – PGupta
    Commented Aug 13, 2013 at 16:53
  • 1
    First of all: Welcome to TeX.SX!. As you seem new around here, just note that people generally prefer that you post follow-up questions as fresh new ones rather than as comments; this enables the question to be searched and its answer(s) to be reused by others. That being said, \fontsize takes as arguments the size of the font and of the linespace (so the second number controls the spacing after, but only if there is a \par to use the new linespace AFAIK).
    – Xavier
    Commented Aug 13, 2013 at 21:51
  • 1
    \mdseries stands for medium bold weight (as compared to bold, light, extra bold, etc.), and \upshape for upright font variant (as compared to italics or oblique / slanted).
    – Xavier
    Commented Aug 13, 2013 at 21:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .