diff --git a/awesome-cv.cls b/awesome-cv.cls index 1bcd00e..f2e717a 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -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} diff --git a/examples/coverletter.tex b/examples/coverletter.tex index 0600fdf..e032dca 100644 --- a/examples/coverletter.tex +++ b/examples/coverletter.tex @@ -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 diff --git a/examples/cv.tex b/examples/cv.tex index d049639..f2dc290 100644 --- a/examples/cv.tex +++ b/examples/cv.tex @@ -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 diff --git a/examples/fonts b/examples/fonts deleted file mode 120000 index 35bed8b..0000000 --- a/examples/fonts +++ /dev/null @@ -1 +0,0 @@ -../fonts \ No newline at end of file diff --git a/examples/resume.tex b/examples/resume.tex index f3ec1af..0121d70 100644 --- a/examples/resume.tex +++ b/examples/resume.tex @@ -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 diff --git a/fonts/Roboto-Bold.ttf b/fonts/Roboto-Bold.ttf deleted file mode 100644 index 91ec212..0000000 Binary files a/fonts/Roboto-Bold.ttf and /dev/null differ diff --git a/fonts/Roboto-BoldItalic.ttf b/fonts/Roboto-BoldItalic.ttf deleted file mode 100644 index 4013bf8..0000000 Binary files a/fonts/Roboto-BoldItalic.ttf and /dev/null differ diff --git a/fonts/Roboto-Italic.ttf b/fonts/Roboto-Italic.ttf deleted file mode 100644 index 9f49ffd..0000000 Binary files a/fonts/Roboto-Italic.ttf and /dev/null differ diff --git a/fonts/Roboto-Light.ttf b/fonts/Roboto-Light.ttf deleted file mode 100644 index d43e943..0000000 Binary files a/fonts/Roboto-Light.ttf and /dev/null differ diff --git a/fonts/Roboto-LightItalic.ttf b/fonts/Roboto-LightItalic.ttf deleted file mode 100644 index c11442c..0000000 Binary files a/fonts/Roboto-LightItalic.ttf and /dev/null differ diff --git a/fonts/Roboto-Medium.ttf b/fonts/Roboto-Medium.ttf deleted file mode 100644 index 8798341..0000000 Binary files a/fonts/Roboto-Medium.ttf and /dev/null differ diff --git a/fonts/Roboto-MediumItalic.ttf b/fonts/Roboto-MediumItalic.ttf deleted file mode 100644 index 5e86637..0000000 Binary files a/fonts/Roboto-MediumItalic.ttf and /dev/null differ diff --git a/fonts/Roboto-Regular.ttf b/fonts/Roboto-Regular.ttf deleted file mode 100644 index 7d9a6c4..0000000 Binary files a/fonts/Roboto-Regular.ttf and /dev/null differ diff --git a/fonts/Roboto-Thin.ttf b/fonts/Roboto-Thin.ttf deleted file mode 100644 index 861d63a..0000000 Binary files a/fonts/Roboto-Thin.ttf and /dev/null differ diff --git a/fonts/Roboto-ThinItalic.ttf b/fonts/Roboto-ThinItalic.ttf deleted file mode 100644 index e65145f..0000000 Binary files a/fonts/Roboto-ThinItalic.ttf and /dev/null differ