7

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.

7
  • What do you mean by "boxy text"? Are you referring to "body text"?
    – Werner
    Commented Dec 27, 2016 at 15:25
  • Change the 11pt option in the \documentclass optional argument to 12pt.
    – Werner
    Commented Dec 27, 2016 at 18:24
  • That (changing font to 12pt in \documentclass did not work. Commented Dec 29, 2016 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
    Commented Dec 29, 2016 at 23:03
  • The text font size did not change. I even tried 24pt just for kicks, to no avail. Commented Dec 30, 2016 at 1:30

1 Answer 1

9

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}

\newfontfamily\headerfontlight[
  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
\let\headerfontlight\rmfamily
\let\footerfont\rmfamily
\let\bodyfont\rmfamily
\let\bodyfontlight\rmfamily

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

enter image description here

Note that with a change in font there is most certainly going to be a change in layout (as can be seen by the sectional unit ending without content at the bottom of the first page).

0

You must log in to answer this question.

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