diff options
author | Karl Berry <karl@freefriends.org> | 2018-08-22 21:31:55 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-08-22 21:31:55 +0000 |
commit | e3be8455088de0aa6b78d6fc736f6e245de54395 (patch) | |
tree | 4cceafcf819e910bff95b89b90394d1174934ed9 /Master/texmf-dist/tex/latex/xfakebold | |
parent | 1b5839f369ffc7ba6b4138c9ac4ea2baf98a3b13 (diff) |
xfakebold (22aug18)
git-svn-id: svn://tug.org/texlive/trunk@48460 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/xfakebold')
-rw-r--r-- | Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty b/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty index c6532bc535a..70dc0e678c2 100644 --- a/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty +++ b/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty @@ -13,7 +13,7 @@ %% version 2005/12/01 or later. %% %% -\ProvidesPackage{xfakebold}[2018/08/07 v0.03 using bold characters] +\ProvidesPackage{xfakebold}[2018/08/21 v0.04 using bold characters] \RequirePackage{ifluatex,ifxetex,xkeyval} \def\setBold{} @@ -35,16 +35,18 @@ \PackageWarning{fakebold}% {^^J No LuaTeX or PDFTeX running! ^^J For Xe(La)TeX use the FakeBold option from package fontspec! - \def\fakebold{0}}% + \def\fake@bold{-1}}% \fi \ifluatex - \gdef\setBold{\pdfextension literal direct { 2 Tr \fake@bold\space w }\relax} - \gdef\unsetBold{\pdfextension literal direct { 0 Tr 0 w }\relax} + \def\setBold{\pdfextension literal direct { 2 Tr \fake@bold\space w }\relax} + \def\unsetBold{\pdfextension literal direct { 0 Tr 0 w }\relax} \typeout{We have LuaTeX}% \else - \gdef\setBold{\pdfliteral direct { 2 Tr \fake@bold\space w }\relax} - \gdef\unsetBold{\pdfliteral direct { 0 Tr 0 w }\relax} + \ifdim\fake@bold pt < \p@ \else + \def\setBold{\pdfliteral direct { 2 Tr \fake@bold\space w }\relax} + \def\unsetBold{\pdfliteral direct { 0 Tr 0 w }\relax} \typeout{We have pdfTeX}% + \fi \fi |