# How to change the font in awesome-cv?

How do I change the font in awesome-cv? I detest the Roberto font and would like to revert back to the default latex font with math support.

I am perusing this version from Overleaf: https://www.overleaf.com/latex/templates/awesome-cv/tvmzpvdjfqxp

Edit: Is there a way to change the body text size to 12pt? I tried setting it in the options for the document class, to no avail.

• What do you mean by "boxy text"? Are you referring to "body text"? – Werner Dec 27 '16 at 15:25
• Change the 11pt option in the \documentclass optional argument to 12pt. – Werner Dec 27 '16 at 18:24
• That (changing font to 12pt in \documentclass did not work. – Antillar Maximus Dec 29 '16 at 22:43
• Can you elaborate? Did the main document font not change to 12pt? If not, did it change at all? Did you layout change? What happened...? – Werner Dec 29 '16 at 23:03
• The text font size did not change. I even tried 24pt just for kicks, to no avail. – Antillar Maximus Dec 30 '16 at 1:30

Since you're working in an online template, you can change the .cls to suit your needs.

Overleaf's Awesome CV loads all the fonts in the fonts/ older within the project. If you don't want to use Roborto, edit lines 177-216 of awesome-cv.cls where the "configuration for fonts" are set. Specifically, the class defines the following font families:

\newfontfamily\headerfont[
Path=\@fontdir,
UprightFont=*-Regular,
ItalicFont=*-Italic,
BoldFont=*-Bold,
BoldItalicFont=*-BoldItalic,
]{Roboto}

Path=\@fontdir,
UprightFont=*-Thin,
ItalicFont=*-ThinItalic,
BoldFont=*-Medium,
BoldItalicFont=*-MediumItalic,
]{Roboto}

% Set font for footer (default is Source Sans Pro)
\newfontfamily\footerfont[
Path=\@fontdir,
UprightFont=*-Regular,
ItalicFont=*-It,
BoldFont=*-Bold
]{SourceSansPro}

% Set font for body (default is Source Sans Pro)
\newfontfamily\bodyfont[
Path=\@fontdir,
UprightFont=*-Regular,
ItalicFont=*-It,
BoldFont=*-Bold,
BoldItalicFont=*-BoldIt
]{SourceSansPro}

\newfontfamily\bodyfontlight[
Path=\@fontdir,
UprightFont=*-Light,
ItalicFont=*-LightIt,
BoldFont=*-Semibold,
BoldItalicFont=*-SemiboldIt
]{SourceSansPro}


where \@fontdir points to the fonts/ folder.

Upload a new font into the fonts/ folder and update the above. If you just want good ol' Computer Modern, you can add

\let\headerfont\rmfamily

just before \begin{document} in resume.tex.