summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pgf/version-for-pdftex/pgfmanual-pdftex.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/version-for-pdftex/pgfmanual-pdftex.cfg')
-rw-r--r--Master/texmf-dist/doc/generic/pgf/version-for-pdftex/pgfmanual-pdftex.cfg7
1 files changed, 6 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/version-for-pdftex/pgfmanual-pdftex.cfg b/Master/texmf-dist/doc/generic/pgf/version-for-pdftex/pgfmanual-pdftex.cfg
index bea9f8d862f..4aa0520888d 100644
--- a/Master/texmf-dist/doc/generic/pgf/version-for-pdftex/pgfmanual-pdftex.cfg
+++ b/Master/texmf-dist/doc/generic/pgf/version-for-pdftex/pgfmanual-pdftex.cfg
@@ -11,7 +11,12 @@
\usepackage[hyphens]{url}
\usepackage[pdfborder={0 0 0}]{hyperref}
\makeatletter
-\expandafter\g@addto@macro\csname ttfamily \endcsname{\pdfnoligatures\font\relax}
+\g@addto@macro\selectfont{%
+ \long\edef\longf@family{\f@family}%
+ \ifx\longf@family\ttdefault
+ \pdfnoligatures\font\relax
+ \fi
+}
\makeatother
% Just make sure to compile this using pdfelatex.