Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Change Font and Font Size in Awesome CV #198

Closed
amarakon opened this issue Mar 12, 2022 · 2 comments
Closed

How to Change Font and Font Size in Awesome CV #198

amarakon opened this issue Mar 12, 2022 · 2 comments

Comments

@amarakon
Copy link

amarakon commented Mar 12, 2022

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.

@mitchelloharawild
Copy link
Owner

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}

@amarakon
Copy link
Author

amarakon commented Apr 7, 2022

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

@amarakon amarakon closed this as completed Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants