[Tex/LaTex] MikTex 2.9 64-bit not loading sans serif font for moderncv

fontsmiktexmoderncvromansans-serif

I just got a new computer and installed MikTex 2.9 for Windows7 64-bit.

When I compiled my resume for the first time (moderncv, theme casual), it compiled in roman vs. sans serif fonts. I did not specify the roman argument, so the document should default to sans serif fonts.

Why can't I get sans serif fonts? I hate roman.

Example of file:

\documentclass[10pt,letter]{moderncv}

\moderncvtheme[green]{casual}                
\usepackage[utf8]{inputenc}     
\usepackage{fontenc}
\usepackage[scale=0.835]{geometry}

\AtBeginDocument{\recomputelengths}  

\firstname{Fname}
\familyname{Lnmae}

\address{123 Main St.}{city, state 00000}
\mobile{999 999 9999}

\email{person@email.com}

\nopagenumbers{} 
\hyphenpenalty=100000

\begin{document}

\maketitle
\vspace{-.5in}

\section{Objective}
\cvline{}{Hire Me!}

\section{Experience}

\cventry{Summer 2009}{Trading Post Manager}{Company Name}{Somewhere, NC}{}{Implemented ECR system to manage and report inventory of 350+ items; managed daily operations.}

\end{document} 

Excerpt from \listfiles:

*File List*
moderncv.cls    2012/10/31 v1.2.0 modern curriculum vitae and letter document c
lass
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
    [...]
 fontenc.sty
   t1enc.def    2005/09/27 v1.99g Standard LaTeX file
 lmodern.sty    2009/10/30 v1.6 Latin Modern Fonts
    [...]
  ot1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
  omllmm.fd    2009/10/30 v1.6 Font defs for Latin Modern
 omslmsy.fd    2009/10/30 v1.6 Font defs for Latin Modern
 omxlmex.fd    2009/10/30 v1.6 Font defs for Latin Modern

Best Answer

The sans class option, for sans serif fonts, need to be specified explicitly when loading moderncv since version 0.15, i.e.

\documenclass[sans]{moderncv}

Note also that \moderncvtheme is deprecated, in favor of \moderncvstyle and \moderncvcolor, and that \AtBeginDocument{\recomputelengths} is not required anymore.

Your MWE would then look like

\documentclass[sans]{moderncv}

\moderncvstyle{casual}                

\firstname{Fname}
\familyname{Lname}    
\address{123 Main St.}{City, State 00000}{Country}
\mobile{999 999 9999}
\email{person@email.com}

\begin{document}

\maketitle

\section{Objective}
\cvline{}{Hire Me!}

\end{document}