summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/ctex/zhwindowsfonts.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/ctex/zhwindowsfonts.tex')
-rw-r--r--Master/texmf-dist/tex/generic/ctex/zhwindowsfonts.tex12
1 files changed, 9 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/generic/ctex/zhwindowsfonts.tex b/Master/texmf-dist/tex/generic/ctex/zhwindowsfonts.tex
index d7878965922..9b163944cbf 100644
--- a/Master/texmf-dist/tex/generic/ctex/zhwindowsfonts.tex
+++ b/Master/texmf-dist/tex/generic/ctex/zhwindowsfonts.tex
@@ -59,7 +59,13 @@
\noexpand\noexpand\noexpand\endinput}%
\the\toks2}%
\expandafter\x\csname ctex@zhmap@endinput\endcsname
-\input ifpdf.sty\relax
+\begingroup\expandafter\endgroup
+\expandafter\let\csname ifzhmappdf\expandafter\endcsname\csname
+ \expandafter\ifx\csname ifctexpdf\endcsname\relax
+ \expandafter\ifx\csname pdfoutput\endcsname\relax
+ iffalse\else\ifnum\pdfoutput < 1 iffalse\else iftrue\fi\fi
+ \else ifctexpdf\fi
+\endcsname
\begingroup
\expandafter\ifx\csname ProvidesFile\endcsname\relax
\long\def\x#1\ProvidesFile#2[#3]{%
@@ -70,9 +76,9 @@
\fi
\endgroup
\ProvidesFile{zhwindowsfonts.tex}%
- [2014/06/03 v2.0 Windows font map loader for pdfTeX and DVIPDFMx (CTEX)]
+ [2015/05/25 v2.1 Windows font map loader for pdfTeX and DVIPDFMx (CTEX)]
-\ifpdf
+\ifzhmappdf
\pdfmapline{=gbk@UGBK@ <simsun.ttc}
\pdfmapline{=gbksong@UGBK@ <simsun.ttc}
\pdfmapline{=gbkkai@UGBK@ <simkai.ttf}