Skip to content

Commit

Permalink
Updated Font Awesome to version 6.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviermawet committed Jun 20, 2022
1 parent 5b05d93 commit c666410
Show file tree
Hide file tree
Showing 7 changed files with 2,031 additions and 4 deletions.
20 changes: 16 additions & 4 deletions awesome-cv.cls
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
% Needed to manage math fonts
\RequirePackage{unicode-math}
% Needed to use icons from font-awesome
\RequirePackage{fontawesome5}
\RequirePackage{fontawesome6}
\RequirePackage{roboto}
\RequirePackage[default,opentype]{sourcesanspro}
% Needed for the photo ID
Expand All @@ -97,6 +97,7 @@
% 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,6 +162,17 @@
%-------------------------------------------------------------------------------
% Configuration for fonts
%-------------------------------------------------------------------------------
% FontAwesome 6 fonts
\newfontfamily\FAB[
Path=\@fontdir,
]{Font-Awesome-6-Brands-Regular-400}
\newfontfamily\FAR[
Path=\@fontdir,
]{Font-Awesome-6-Free-Regular-400}
\newfontfamily\FAS[
Path=\@fontdir,
]{Font-Awesome-6-Free-Solid-900}

\newcommand*{\headerfont}{\roboto}
\newcommand*{\headerfontlight}{\robotolight}
\newcommand*{\footerfont}{\sourcesanspro}
Expand Down Expand Up @@ -473,20 +485,20 @@
{}%
{%
\ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}%
\href{mailto:\@email}{\faEnvelope\acvHeaderIconSep\@email}%
\href{mailto:\@email}{\faEnvelopeS\acvHeaderIconSep\@email}%
}%
\ifthenelse{\isundefined{\@dateofbirth}}%
{}%
{%
\ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}%
% \mbox prevents wrapping of elements%
\mbox{\faBirthdayCake\acvHeaderIconSep\@dateofbirth}%
\mbox{\faCakeCandles\acvHeaderIconSep\@dateofbirth}%
}%
\ifthenelse{\isundefined{\@homepage}}%
{}%
{%
\ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}%
\href{http://\@homepage}{\faHome\acvHeaderIconSep\@homepage}%
\href{http://\@homepage}{\faHouseChimney\acvHeaderIconSep\@homepage}%
}%
\ifthenelse{\isundefined{\@github}}%
{}%
Expand Down
1 change: 1 addition & 0 deletions examples/fontawesome6.sty
1 change: 1 addition & 0 deletions examples/fonts
Loading

0 comments on commit c666410

Please sign in to comment.