diff options
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 |