summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-02-27 22:36:36 +0000
committerKarl Berry <karl@freefriends.org>2017-02-27 22:36:36 +0000
commitf02fcd61bd7c61b63b92609fbf989ac19d69df10 (patch)
tree911f1cbb5a9d43f15b41d405f03bfd0a10896742 /Master/texmf-dist
parent4cb4a7ab4b3ee2eaa4ca41f3f510c8a2d5be016a (diff)
mweights (27feb17)
git-svn-id: svn://tug.org/texlive/trunk@43349 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/mweights/README3
-rw-r--r--Master/texmf-dist/tex/latex/mweights/mweights.sty10
2 files changed, 11 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/mweights/README b/Master/texmf-dist/doc/latex/mweights/README
index 899e746655f..2061b6bf8cd 100644
--- a/Master/texmf-dist/doc/latex/mweights/README
+++ b/Master/texmf-dist/doc/latex/mweights/README
@@ -1,4 +1,5 @@
-This is the README for the mweights package, version 2016-12-09.
+This is the README for the mweights package, version
+2017-02-27.
Many font families available for use with LaTeX have multiple
weights, especially when originally aimed at use on the web. For
diff --git a/Master/texmf-dist/tex/latex/mweights/mweights.sty b/Master/texmf-dist/tex/latex/mweights/mweights.sty
index ff92de991b4..b67f06fb72f 100644
--- a/Master/texmf-dist/tex/latex/mweights/mweights.sty
+++ b/Master/texmf-dist/tex/latex/mweights/mweights.sty
@@ -1,5 +1,5 @@
\ProvidesPackage{mweights}
- [2016/12/09 (Bob Tennent) Support package for multiple-weight font packages. ]
+ [2017/02/27 (Bob Tennent) Support package for multiple-weight font packages. ]
\def\mweights@init{%
% Define any undefined \mdseries@rm etc.
@@ -16,6 +16,7 @@
\edef\ttdef@ult{\ttdefault}%
\edef\bfdef@ult{\bfdefault}%
\edef\mddef@ult{\mddefault}%
+\edef\famdef@ult{\familydefault}%
}
\DeclareRobustCommand\bfseries{%
@@ -91,4 +92,11 @@
\else\fontseries\mdseries@tt
\fi\fi\fontfamily\ttdefault\selectfont}
+% override default family with new \familydefault
+\AtBeginDocument{\mweights@init
+\ifx\famdef@ult\rmdef@ult\rmfamily
+\else\ifx\famdef@ult\sfdef@ult\sffamily
+\else\ifx\famdef@ult\ttdef@ult\ttfamily
+\fi\fi\fi}
+
\endinput