From f07c365092259cb4bfaa8f7122ea872ca5aa0a00 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Wed, 28 Jul 2021 20:47:32 +0000
Subject: moderncv (28jul21)

git-svn-id: svn://tug.org/texlive/trunk@60103 c570f23f-e606-0410-a88d-b1316a301751
---
 .../tex/latex/moderncv/moderncvstylecasual.sty     | 26 ++++++++++++++--------
 1 file changed, 17 insertions(+), 9 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty')

diff --git a/Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty b/Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty
index a3eed14091b..f5918309f59 100644
--- a/Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty
+++ b/Master/texmf-dist/tex/latex/moderncv/moderncvstylecasual.sty
@@ -10,15 +10,20 @@
 %                identification
 %-------------------------------------------------------------------------------
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{moderncvstylecasual}[2021/01/21 v2.1.0 modern curriculum vitae and letter style scheme: casual]
+\ProvidesPackage{moderncvstylecasual}[2021-07-28 v2.2.0 modern curriculum vitae and letter style scheme: casual]
 
 % head section alignment options: "left" (default) or "right"
 \@initializecommand{\moderncvstyleheadoptions}{}
 \DeclareOption{left} {\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,left}}
 \DeclareOption{right}{\edef\moderncvstyleheadoptions{\moderncvstyleheadoptions,right}}
 
+% toggle use of symbol fonts.
+\@initializeif{\if@symbols}\@symbolsfalse
+\DeclareOption{symbols}      {\@symbolstrue}
+\DeclareOption{nosymbols}    {\@symbolsfalse}
+
 \DeclareOption*{}% avoid choking on unknown options
-\ExecuteOptions{right}
+\ExecuteOptions{right,symbols}
 \ProcessOptions*\relax% \ProcessOptions* processes the options in the order provided (i.e., with the later ones possibly overriding the former ones), while \ProcessOptions processes them in the order of the package
 
 %-------------------------------------------------------------------------------
@@ -30,17 +35,20 @@
 %  \setsansfont{Latin Modern Sans}
 %  \setmathfont{Latin Modern Math}
 %\else
-  \IfFileExists{lmodern.sty}%
-    {\RequirePackage{lmodern}}%
-    {}
+%   \IfFileExists{lmodern.sty}%
+%     {\RequirePackage{lmodern}}%
+%     {}
 %\fi
 
 % symbols
-\RequirePackage{ifxetex}
-\ifxetexorluatex
-  \moderncvicons{awesome}
+\if@symbols
+    \ifxetexorluatex
+    \moderncvicons{awesome}     % use font-awesome symbols if lualatex or xelatex is used
+    \else
+    \moderncvicons{marvosym}    % use marvosym symbols pdflatex is used
+    \fi
 \else
-  \moderncvicons{marvosym}
+    \moderncvicons{letters}    % do not use symbols, use letters
 \fi
 
 
-- 
cgit v1.2.3

