%% Copyright (C) 2009 Yue Wang and Liu Haiyang
%%  This file may be distributed and/or modified under the
%%  conditions of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%%  The latest version of this license is in
%%    http://www.latex-project.org/lppl.txt
%%  and version 1.3 or later is part of all distributions of LaTeX
%%  version 2005/12/01 or later.
%% 
%% Windows Chinese font map loader for pdfTeX and DVIPDFMx
%% Changes: 
%% - now pdftex supports ttc, so there is no need to use simsun.ttf in the map line
%% - add dvipdfmx cid-x.map here in order to load map file during run time
%% - remove the LaTeX package definitions so now plain TeX and ConTeXt are also supported


\input ifpdf.sty

\ifpdf
	\pdfmapline{=gbk@UGBK@ <simsun.ttc} 
	\pdfmapline{=gbksong@UGBK@ <simsun.ttc} 
	\pdfmapline{=gbkkai@UGBK@ <simkai.ttf}
	\pdfmapline{=gbkhei@UGBK@ <simhei.ttf}
	\pdfmapline{=gbkfs@UGBK@ <simfang.ttf}
	\pdfmapline{=gbkli@UGBK@ <simli.ttf}
	\pdfmapline{=gbkyou@UGBK@ <simyou.ttf}

	\pdfmapline{=cyberb@Unicode@ <simsun.ttc}
	\pdfmapline{=unisong@Unicode@ <simsun.ttc}
	\pdfmapline{=unikai@Unicode@ <simkai.ttf}
	\pdfmapline{=unihei@Unicode@ <simhei.ttf}
	\pdfmapline{=unifs@Unicode@ <simfang.ttf}
	\pdfmapline{=unili@Unicode@ <simli.ttf}
	\pdfmapline{=uniyou@Unicode@ <simyou.ttf}

	\pdfmapline{=gbksongsl@UGBK@ <simsun.ttc} 
	\pdfmapline{=gbkkaisl@UGBK@ <simkai.ttf}
	\pdfmapline{=gbkheisl@UGBK@ <simhei.ttf}
	\pdfmapline{=gbkfssl@UGBK@ <simfang.ttf}
	\pdfmapline{=gbklisl@UGBK@ <simli.ttf}
	\pdfmapline{=gbkyousl@UGBK@ <simyou.ttf}

	\pdfmapline{=unisongsl@Unicode@ <simsun.ttc}
	\pdfmapline{=unikaisl@Unicode@ <simkai.ttf}
	\pdfmapline{=uniheisl@Unicode@ <simhei.ttf}
	\pdfmapline{=unifssl@Unicode@ <simfang.ttf}
	\pdfmapline{=unilisl@Unicode@ <simli.ttf}
	\pdfmapline{=uniyousl@Unicode@ <simyou.ttf}

\else
	\special{pdf:mapline + gbk@UGBK@ unicode :0:simsun.ttc -v 50}
	\special{pdf:mapline + gbksong@UGBK@ unicode :0:simsun.ttc -v 50}
	\special{pdf:mapline + gbkkai@UGBK@ unicode simkai.ttf -v 70}
	\special{pdf:mapline + gbkhei@UGBK@ unicode simhei.ttf -v 150}
	\special{pdf:mapline + gbkfs@UGBK@ unicode simfang.ttf -v 50}
	\special{pdf:mapline + gbkli@UGBK@ unicode simli.ttf -v 150}
	\special{pdf:mapline + gbkyou@UGBK@ unicode simyou.ttf -v 60}

	\special{pdf:mapline + cyberb@Unicode@ unicode :0:simsun.ttc -v 50}
	\special{pdf:mapline + unisong@Unicode@ unicode :0:simsun.ttc -v 50}
	\special{pdf:mapline + unikai@Unicode@ unicode simkai.ttf -v 70}
	\special{pdf:mapline + unihei@Unicode@ unicode simhei.ttf -v 150}
	\special{pdf:mapline + unifs@Unicode@ unicode simfang.ttf -v 50}
	\special{pdf:mapline + unili@Unicode@ unicode simli.ttf -v 150}
	\special{pdf:mapline + uniyou@Unicode@ unicode simyou.ttf -v 60}

	\special{pdf:mapline + gbksongsl@UGBK@ unicode :0:simsun.ttc -s .167 -v 50}
	\special{pdf:mapline + gbkkaisl@UGBK@ unicode simkai.ttf -s .167 -v 70}
	\special{pdf:mapline + gbkheisl@UGBK@ unicode simhei.ttf -s .167 -v 150}
	\special{pdf:mapline + gbkfssl@UGBK@ unicode simfang.ttf -s .167 -v 50}
	\special{pdf:mapline + gbklisl@UGBK@ unicode simli.ttf -s .167 -v 150}
	\special{pdf:mapline + gbkyousl@UGBK@ unicode simyou.ttf -s .167 -v 60}

	\special{pdf:mapline + unisongsl@Unicode@ unicode :0:simsun.ttc -s .167 -v 50}
	\special{pdf:mapline + unikaisl@Unicode@ unicode simkai.ttf -s .167 -v 70}
	\special{pdf:mapline + uniheisl@Unicode@ unicode simhei.ttf -s .167 -v 150}
	\special{pdf:mapline + unifssl@Unicode@ unicode simfang.ttf -s .167 -v 50}
	\special{pdf:mapline + unilisl@Unicode@ unicode simli.ttf -s .167 -v 150}
	\special{pdf:mapline + uniyousl@Unicode@ unicode simyou.ttf -s .167 -v 60}

\fi
\endinput
