Awesome-CV icon indicating copy to clipboard operation
Awesome-CV copied to clipboard

How to change font

Open vicrucann opened this issue 7 years ago • 3 comments

I'd like to try some other common font, e.g., Times New Roman. Is there an easy way to change that?

vicrucann avatar Mar 27 '17 20:03 vicrucann

Allo @vicrucann ,

If you want to change the font, I would suggest to use these commandes (they're shown in the awesome-cv.cls and can be tweaked).

\footerfont{Times New Roman}
\bodyfont{Times New Roman}
\bodyfontlight{Times New Roman}

However you have to make sure the new font you want to use is in the right directory or use a \RequirePackage[default,opentype]{sourcesanspro} like the one in the awesome-cv.cls like you would use \sourcesanspro after, but I don't know exactly how to use it.

Hope it helps.

sylhare avatar Mar 28 '17 20:03 sylhare

You can define a custom font family and use it different sections, here is how I use Montserrat font for the cover letter body:

%-------------------------------------------------------------------------------
%                Configuration for fonts
%-------------------------------------------------------------------------------

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

% For elements of cover letter

\newcommand*{\mylettertextstyle}{\fontsize{8pt}{1.4em}\alishirfont\selectfont\color{graytext}}

p.s.: You should copy font files in the font directory.

alishir avatar Sep 04 '20 09:09 alishir

Hello everybody, I am still interested in resolving this issue. I am not a proficient coder in TeX, but I am very interested in understanding how to properly change fonts. Like, I got that you have to add the .tff files to the font directory and adjust the code in the awesome-cv.cls. But this alone doesn't fix the problem for me. Is there anyone who understands this and would like to share an easy explanation (or maybe some easy code example)? Thank you so much!

ghost avatar Jan 05 '21 11:01 ghost

@sylhare I got this error when adding three lines mentioned by you:

LaTeX Error: Missing \begin{document}. [\footerfont{T]

Any idea how to fix it?

zxdawn avatar Oct 18 '22 11:10 zxdawn

Well, I found the solution on StackOverflow:

Add these just before \begin{document}

\let\headerfont\rmfamily
\let\headerfontlight\rmfamily
\let\footerfont\rmfamily
\let\bodyfont\rmfamily
\let\bodyfontlight\rmfamily

zxdawn avatar Oct 18 '22 11:10 zxdawn

How does one change the font size? Or make the font a bit thicker

HlexNC avatar Mar 20 '23 08:03 HlexNC

I'm trying to change the font style but I still can't do it

chulao14 avatar Nov 07 '23 15:11 chulao14

I'm trying to change the font style but I still can't do it

I at some point succeeded, but the end result didn't look well. I suggest keeping to the defaults

HlexNC avatar Nov 07 '23 17:11 HlexNC

The font size can be changed inside awesome-cv.cls lines 191-234, which is just a trial and error when finding the correct line to edit.

HlexNC avatar Nov 07 '23 17:11 HlexNC

image

HlexNC avatar Nov 07 '23 17:11 HlexNC