forked from mirrors/Awesome-CV
Use Roboto package instead of bundling the font (#403)
* 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 <niklas@bolander.dev>
This commit is contained in:
parent
af40bb01d9
commit
1a5691e63f
15 changed files with 5 additions and 30 deletions
|
@ -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}
|
||||
|
@ -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
|
||||
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
../fonts
|
|
@ -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
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue