summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/addfont/addfont.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/addfont/addfont.sty')
-rw-r--r--Master/texmf-dist/tex/latex/addfont/addfont.sty10
1 files changed, 5 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/addfont/addfont.sty b/Master/texmf-dist/tex/latex/addfont/addfont.sty
index 7b25c71c694..74d6bf63a40 100644
--- a/Master/texmf-dist/tex/latex/addfont/addfont.sty
+++ b/Master/texmf-dist/tex/latex/addfont/addfont.sty
@@ -1,4 +1,4 @@
-% Copyright 2016 (c) Palle Joergensen
+% Copyright 2016-21 (c) Palle Joergensen
%
% This file is part of addfont.
%
@@ -15,21 +15,21 @@
% You should have received a copy of the GNU General Public License
% along with addfont. If not, see <http://www.gnu.org/licenses/>.
\ProvidesPackage{addfont}%
- [2016/09/01 v1.0 Easier usage of fonts without LaTeX support.]
+ [2021/03/20 v. 1.1 Easier usage of fonts without LaTeX support.]
\newif\ifaddfont@fixed
\addfont@fixedtrue
\RequirePackage{twoopt}
\RequirePackage{ifthen}
-\newcommandtwoopt*\addfont@all[5][][]{% scale, sel-cmd, enc, font, cmd
+\newcommandtwoopt*\addfont@all[5][][]{% #1:scale, #2:sel-cmd, #3:enc, #4:family/font, #5:cmd
\addfont@fixedfalse
\def\addfont@latestencoding{#3}%
\def\addfont@latestfamily{#4}%
\ifthenelse{\equal{#1}{\@empty}}{\let\addfont@latestscale\@empty}{\def\addfont@latestscale{s*[#1]}}
\DeclareFontFamily{#3}{#4}{#2}%
- \DeclareFontShape{#3}{#4}{m}{n}{<->#3}{}%
+ \DeclareFontShape{#3}{#4}{m}{n}{<->#4}{}%
\def#5{\fontencoding{#3}\fontfamily{#4}\mdseries\upshape}}
-\newcommandtwoopt*\addfont@fixed[5][][]{% scale, sel-cmd, enc, font, cmd
+\newcommandtwoopt*\addfont@fixed[5][][]{% #1:scale, #2:sel-cmd, #3:enc, #4:font, #5:cmd
\addfont@fixedtrue
\def\addfont@latestencoding{#3}%
\def\addfont@latestfamily{#4}%