summaryrefslogtreecommitdiff
path: root/tex/context/base/enco-pfr.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/enco-pfr.tex')
-rw-r--r--tex/context/base/enco-pfr.tex14
1 files changed, 12 insertions, 2 deletions
diff --git a/tex/context/base/enco-pfr.tex b/tex/context/base/enco-pfr.tex
index 24044e4d0..00d0192d3 100644
--- a/tex/context/base/enco-pfr.tex
+++ b/tex/context/base/enco-pfr.tex
@@ -215,7 +215,17 @@
% \fi}
\def\includepdffontresource
- {\ifcase\pdfgentounicode
+ {\ifx\pdfgentounicode\undefined
+ \expandafter\ifx\the\font\nullfont \else
+ \ifx\pdffontattr\undefined
+ % we're not using (a recent version of) pdftex
+ \else\ifcase\pdfoutput
+ % we're not in pdf mode
+ \else
+ \doincludepdffontresource
+ \fi\fi
+ \fi
+ \else\ifcase\pdfgentounicode
\ifincludepdffontresources
\expandafter\ifx\the\font\nullfont \else
\ifx\pdffontattr\undefined
@@ -229,7 +239,7 @@
\fi
\or
\global\let\includepdffontresource\relax % automatic, built in
- \fi}
+ \fi\fi}
\def\dododoincludepdffontresource#1% encoding
{\bgroup