Skip to content

Commit

Permalink
Use Roboto package instead of bundling the font (posquit0#403)
Browse files Browse the repository at this point in the history
* Use the roboto font package

* Remove font directory symlink for the examples

* Remove obsolete font files

* Remove custom font directory from the examples

Not required anymore since they do not use any custom fonts.

Co-authored-by: Niklas Bolander <[email protected]>
  • Loading branch information
bol and Niklas Bolander authored Apr 19, 2022
1 parent af40bb0 commit 1a5691e
Show file tree
Hide file tree
Showing 15 changed files with 5 additions and 30 deletions.
25 changes: 5 additions & 20 deletions awesome-cv.cls
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
\RequirePackage{unicode-math}
% Needed to use icons from font-awesome
\RequirePackage{fontawesome5}
\RequirePackage{roboto}
\RequirePackage[default,opentype]{sourcesanspro}
% Needed for the photo ID
\RequirePackage[skins]{tcolorbox}
Expand All @@ -93,10 +94,9 @@
%-------------------------------------------------------------------------------
% Configuration for directory locations
%-------------------------------------------------------------------------------
% Configure a directory location for fonts(default: 'fonts/')
% Configure an optional directory location for fonts(default: 'fonts/')
% Not required anymore but left in place for backward compatability.
\newcommand*{\fontdir}[1][fonts/]{\def\@fontdir{#1}}
\fontdir


%-------------------------------------------------------------------------------
% Configuration for layout
Expand Down Expand Up @@ -161,23 +161,8 @@
%-------------------------------------------------------------------------------
% Configuration for fonts
%-------------------------------------------------------------------------------
% 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*{\headerfont}{\roboto}
\newcommand*{\headerfontlight}{\robotolight}
\newcommand*{\footerfont}{\sourcesanspro}
\newcommand*{\bodyfont}{\sourcesanspro}
\newcommand*{\bodyfontlight}{\sourcesansprolight}
Expand Down
3 changes: 0 additions & 3 deletions examples/coverletter.tex
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
% Configure page margins with geometry
\geometry{left=1.4cm, top=.8cm, right=1.4cm, bottom=1.8cm, footskip=.5cm}

% Specify the location of the included fonts
\fontdir[fonts/]

% Color for highlights
% Awesome Colors: awesome-emerald, awesome-skyblue, awesome-red, awesome-pink, awesome-orange
% awesome-nephritis, awesome-concrete, awesome-darknight
Expand Down
3 changes: 0 additions & 3 deletions examples/cv.tex
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
% Configure page margins with geometry
\geometry{left=1.4cm, top=.8cm, right=1.4cm, bottom=1.8cm, footskip=.5cm}

% Specify the location of the included fonts
\fontdir[fonts/]

% Color for highlights
% Awesome Colors: awesome-emerald, awesome-skyblue, awesome-red, awesome-pink, awesome-orange
% awesome-nephritis, awesome-concrete, awesome-darknight
Expand Down
1 change: 0 additions & 1 deletion examples/fonts

This file was deleted.

3 changes: 0 additions & 3 deletions examples/resume.tex
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
% Configure page margins with geometry
\geometry{left=1.4cm, top=.8cm, right=1.4cm, bottom=1.8cm, footskip=.5cm}

% Specify the location of the included fonts
\fontdir[fonts/]

% Color for highlights
% Awesome Colors: awesome-emerald, awesome-skyblue, awesome-red, awesome-pink, awesome-orange
% awesome-nephritis, awesome-concrete, awesome-darknight
Expand Down
Binary file removed fonts/Roboto-Bold.ttf
Binary file not shown.
Binary file removed fonts/Roboto-BoldItalic.ttf
Binary file not shown.
Binary file removed fonts/Roboto-Italic.ttf
Binary file not shown.
Binary file removed fonts/Roboto-Light.ttf
Binary file not shown.
Binary file removed fonts/Roboto-LightItalic.ttf
Binary file not shown.
Binary file removed fonts/Roboto-Medium.ttf
Binary file not shown.
Binary file removed fonts/Roboto-MediumItalic.ttf
Binary file not shown.
Binary file removed fonts/Roboto-Regular.ttf
Binary file not shown.
Binary file removed fonts/Roboto-Thin.ttf
Binary file not shown.
Binary file removed fonts/Roboto-ThinItalic.ttf
Binary file not shown.

0 comments on commit 1a5691e

Please sign in to comment.