From e3be8455088de0aa6b78d6fc736f6e245de54395 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Wed, 22 Aug 2018 21:31:55 +0000
Subject: xfakebold (22aug18)

git-svn-id: svn://tug.org/texlive/trunk@48460 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty')

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
 
-- 
cgit v1.2.3

