From 7c74b17e05b7a738deafbfa10ccfb7821decd590 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sat, 21 Sep 2019 21:52:09 +0000
Subject: xfakebold (21sep19)

git-svn-id: svn://tug.org/texlive/trunk@52144 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/tex/latex/xfakebold/xfakebold.sty   | 29 +++++++++++-----------
 1 file changed, 15 insertions(+), 14 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 70dc0e678c2..51d030dedf6 100644
--- a/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty
+++ b/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty
@@ -1,8 +1,8 @@
-% $Id: xfakebold.sty 793 2018-08-06 16:39:25Z herbert $
+% $Id: xfakebold.sty 1087 2019-09-21 11:53:40Z herbert $
 %%
 %% This is file `xfakebold.sty', 
 %%
-%%   Copyright (C) 2018  Herbert Voss
+%%   Copyright (C) 2019  Herbert Voss
 %% 
 %% It may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.3c
@@ -13,40 +13,41 @@
 %% version 2005/12/01 or later.
 %% 
 %%
-\ProvidesPackage{xfakebold}[2018/08/21 v0.04 using bold characters]
+\ProvidesPackage{xfakebold}[2019/09/21 v0.05 using bold characters]
 \RequirePackage{ifluatex,ifxetex,xkeyval}
 
 \def\setBold{}
 \def\unsetBold{}
-\def\fake@bold{0.3}%
+\def\fake@bold{0.4}%
 
 \DeclareOptionX{bold}{%
   \def\fake@bold{#1}% 
-  \ifdim\fake@bold pt > \p@
+  \ifdim\fake@bold pt > 0pt
   \else 
     \PackageWarning{fakebold}{The value must be greater than 0. Will chooose 0.3}%
     \def\fake@bold{0.3}%
   \fi}
 
 \ProcessOptionsX
-
+\typeout{We use fakebold with factor \fake@bold}%
 \ifxetex
   \typeout{We have XeTeX}% 
   \PackageWarning{fakebold}%
   {^^J    No LuaTeX or PDFTeX running!
    ^^J    For Xe(La)TeX use the FakeBold option from package fontspec!
    \def\fake@bold{-1}}%
-\fi
-
-\ifluatex
+\else
+  \ifluatex
     \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
-  \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}% 
+  \else
+    \ifdim\fake@bold pt < \z@ \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
 \fi
 
+\endinput
\ No newline at end of file
-- 
cgit v1.2.3

