Skip to content

Commit

Permalink
Updated Font Awesome to version 6.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviermawet committed Oct 15, 2023
1 parent a79de5d commit 1d17d21
Show file tree
Hide file tree
Showing 7 changed files with 2,048 additions and 5 deletions.
22 changes: 17 additions & 5 deletions awesome-cv.cls
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,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 @@ -99,6 +99,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 @@ -163,6 +164,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 @@ -488,26 +500,26 @@
{}%
{%
\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}}%
{}%
{%
\ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}%
\href{https://github.com/\@github}{\faGithubSquare\acvHeaderIconSep\@github}%
\href{https://github.com/\@github}{\faSquareGithub\acvHeaderIconSep\@github}%
}%
\ifthenelse{\isundefined{\@gitlab}}%
{}%
Expand Down
1 change: 1 addition & 0 deletions examples/fontawesome6.sty
1 change: 1 addition & 0 deletions examples/fonts
Loading

0 comments on commit 1d17d21

Please sign in to comment.