mitchelloharawild / vitae

R Markdown Résumés and CVs

Home Page:https://pkg.mitchelloharawild.com/vitae/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to Change Font and Font Size in Awesome CV

amarakon opened this issue · comments

I tried to put this in my yaml:

mainfont: Inconsolata LGC Markup
sansfont: Inconsolata LGC Markup
monofont: Inconsolata LGC Markup
fontsize: 11pt
output:
  vitae::awesomecv:
    latex_engine: xelatex

But it didn't affect anything.

Some discussion on how to change the font size is here: #81
To change the font, you will need to edit the cls file which gets copied to your project directory when you knit. The place to edit in this file is here:

%-------------------------------------------------------------------------------
% Configuration for fonts
%-------------------------------------------------------------------------------
% Set the FontAwesome font to be up-to-date.
%\newfontfamily\FA[Path=\@fontdir]{FontAwesome}
% Set font for header (default is Roboto)
\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}
\newcommand*{\footerfont}{\sourcesanspro}
\newcommand*{\bodyfont}{\sourcesanspro}
\newcommand*{\bodyfontlight}{\sourcesansprolight}

Thanks, all I had to do was edit that file like you said and it worked.