diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-fontawesome.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-fontawesome.sty | 44 |
1 files changed, 19 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-fontawesome.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-fontawesome.sty index 6bec2486ffc..7115efba8a9 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-fontawesome.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-fontawesome.sty @@ -6,7 +6,7 @@ %% %% lwarp.dtx (with options: `fontawesome') %% This is a generated file. -%% Copyright 2016-2019 Brian Dunn +%% Copyright 2016-2020 Brian Dunn %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -23,12 +23,12 @@ \newfontfamily{\LWR@orig@FA}{FontAwesome} \newcommand*{\LWR@fontawesome@xelatex@symbol}[1]{% -\begin{lateximage}*[icon][fontawesomexetex#1]% -\begingroup% -\LWR@orig@FA% -\LWR@orig@symbol{#1}% -\endgroup% -\end{lateximage}% + \LWR@findcurrenttextcolor% + \begin{lateximage}*[icon][fontawesomexetex#1SZ\LWR@font@size{}CL\LWR@tempcolor]% + \csuse{\LWR@font@size}% + \LWR@orig@FA% + \LWR@orig@symbol{#1}% + \end{lateximage}% } \RenewDocumentCommand{\FA}{}{% @@ -37,31 +37,25 @@ \else +\newcommand*{\LWR@fontawesome@symbolX}[2]{% + \LWR@findcurrenttextcolor% + \begin{lateximage}*[icon #1][fontawesome#2#1SZ\LWR@font@size{}CL\LWR@tempcolor]% + \csuse{\LWR@font@size}% + \fontencoding{U}\fontfamily{fontawesome#2}\selectfont% + \LWR@orig@symbol{#1}% + \end{lateximage}% +} + \newcommand*{\LWR@fontawesome@symbolone}[1]{% -\begin{lateximage}*[icon #1][fontawesomeone#1]% -\begingroup% -\fontencoding{U}\fontfamily{fontawesomeone}\selectfont% -\LWR@orig@symbol{#1}% -\endgroup% -\end{lateximage}% + \LWR@fontawesome@symbolX{#1}{one}% } \newcommand*{\LWR@fontawesome@symboltwo}[1]{% -\begin{lateximage}*[icon #1][fontawesometwo#1]% -\begingroup% -\fontencoding{U}\fontfamily{fontawesometwo}\selectfont% -\LWR@orig@symbol{#1}% -\endgroup% -\end{lateximage}% + \LWR@fontawesome@symbolX{#1}{two}% } \newcommand*{\LWR@fontawesome@symbolthree}[1]{% -\begin{lateximage}*[icon #1][fontawesomethree#1]% -\begingroup% -\fontencoding{U}\fontfamily{fontawesomeonethree}\selectfont% -\LWR@orig@symbol{#1}% -\endgroup% -\end{lateximage}% + \LWR@fontawesome@symbolX{#1}{three}% } \renewrobustcmd\FAone{% |