Commits

Zou Hu committed e6fc0e0

allow using windows font

Comments (0)

Files changed (2)

 
 % Computer Modern fonts.
 %
-\font\zhfont="Adobe Song Std" at 10pt
+\ifadobefont
+  \def\song{Adobe Song Std}
+  \def\hei{Adobe Heiti Std}
+  \def\kai{Adobe Kaiti Std}
+  \def\fang{Adobe Fangsong Std}
+\else
+  \def\song{SimSun}
+  \def\hei{SimHei}
+  \def\kai{KaiTi}
+  \def\fang{FangSong}
+\fi
+%
+\font\zhfont="\song" at 10pt
 \def\zhpunctfont{\zhfont}
 \input zhspacing.sty
 \zhspacing
 \font\enfiverm = cmr5
-\font\zhfiverm = "Adobe Song Std" at 5pt
+\font\zhfiverm = "\song" at 5pt
 \def\fiverm{\enfiverm\let\zhfont\zhfiverm}
 \font\eneightrm = cmr8
-\font\zheightrm = "Adobe Song Std" at 8pt
+\font\zheightrm = "\song" at 8pt
 \def\eightrm{\eneightrm\let\zhfont\zheightrm}
 \font\enninerm = cmr9 % Glue pictures, small caps for ASCII.
-\font\zhninerm = "Adobe Song Std" at 9pt
+\font\zhninerm = "\song" at 9pt
 \def\ninerm{\enninerm\let\zhfont\zhninerm}
 %\font\tenrm = xcmr10 % with our kerning
 \font\entenrm = cmr10 % don't have the xcmr10 source any more
-\font\zhtenrm = "Adobe Song Std"  at 10pt
+\font\zhtenrm = "\song"  at 10pt
 \def\tenrm{\entenrm\let\zhfont\zhtenrm}
 \font\enoldtenrm = cmr10 % straight CM
-\font\zholdtenrm = "Adobe Song Std"  at 10pt
+\font\zholdtenrm = "\song"  at 10pt
 \def\oldtenrm{\enoldtenrm\let\zhfont\zholdtenrm}
 \font\entwelverm = cmr12
-\font\zhtwelverm = "Adobe Song Std"  at 12pt
+\font\zhtwelverm = "\song"  at 12pt
 \def\twelverm{\entwelverm\let\zhfont\zhtwelverm}
 \font\entwentysixrm = cmr10 at 26pt
-\font\zhtwentysixrm = "Adobe Heiti Std"  at 26pt
+\font\zhtwentysixrm = "\hei"  at 26pt
 \def\twentysixrm{\entwentysixrm\let\zhfont\zhtwentysixrm}
 %
 \font\eneightit = cmti8
-\font\zheightit = "Adobe Kaiti Std" at 8pt
+\font\zheightit = "\kai" at 8pt
 \def\eightit{\eneightit\let\zhfont\zheightit}
 \font\ennineit = cmti9
-\font\zheightit = "Adobe Kaiti Std" at 9pt
+\font\zheightit = "\kai" at 9pt
 \def\nineit{\ennineit\let\zhfont\zhnineit}
 \font\entenit = cmti10
-\font\zhtenit = "Adobe Kaiti Std" at 10pt
+\font\zhtenit = "\kai" at 10pt
 \def\tenit{\entenit\let\zhfont\zhtenit}
 %
 \font\eneighttt = cmtt8
-\font\zheighttt = "Adobe Fangsong Std" at 8pt
+\font\zheighttt = "\fang" at 8pt
 \def\eighttt{\eneighttt\let\zhfont\zheighttt}
 \font\ententt = cmtt10 
-\font\zhtentt = "Adobe Fangsong Std" at 10pt
+\font\zhtentt = "\fang" at 10pt
 \def\tentt{\ententt\let\zhfont\zhtentt}
 \font\eneleventt = cmtt10 at 11pt
-\font\zheleventt = "Adobe Fangsong Std" at 11pt
+\font\zheleventt = "\fang" at 11pt
 \def\elventt{\enelventt\let\zhfont\zhelventt}
 \font\entwelvett = cmtt10 scaled \magstep2
-\font\zhtwelvett = "Adobe Fangsong Std" at 12pt
+\font\zhtwelvett = "\fang" at 12pt
 \def\twelvett{\entwelvett\let\zhfont\zhtwelvett}
 %
 \font\entenbt = cmtt10
-\font\zhtenbt = "Adobe Fangsong Std" at 10pt
+\font\zhtenbt = "\fang" at 10pt
 \def\tenbt{\entenbt\let\zhfont\zhtenbt}
 %
 \font\enelevensf = cmss10 scaled\magstephalf
-\font\zhelevensf = "Adobe Heiti Std" at 11pt
+\font\zhelevensf = "\hei" at 11pt
 \def\elevensf{\enelevensf\let\zhfont\zhelevensf}
 \font\enfourteensf = cmss10 scaled\magstep2
-\font\zhfourteensf = "Adobe Heiti Std" at 14pt
+\font\zhfourteensf = "\hei" at 14pt
 \def\fourteensf{\enfourteensf\let\zhfont\zhfourteensf}
 %
 \font\eneightbf = cmbx8
-\font\zheightbf = "Adobe Heiti Std" at 8pt
+\font\zheightbf = "\hei" at 8pt
 \def\eightbf{\eneightbf\let\zhfont\zheightbf}
 \font\entenbf = cmbx10
-\font\zhtenbf = "Adobe Heiti Std" at 10pt
+\font\zhtenbf = "\hei" at 10pt
 \def\tenbf{\entenbf\let\zhfont\zhtenbf}
 \font\enelevenbf = cmbx10 scaled \magstephalf
-\font\zhelevenbf = "Adobe Heiti Std" at 11pt
+\font\zhelevenbf = "\hei" at 11pt
 \def\elevenbf{\enelevenbf\let\zhfont\zhelevenbf}
 \font\entwelvebf = cmbx12
-\font\zhtwelvebf = "Adobe Heiti Std" at 12pt
+\font\zhtwelvebf = "\hei" at 12pt
 \def\twelvebf{\entwelvebf\let\zhfont\zhtwelvebf}
 \font\enthirtysixbf = cmbx10 at 36pt
-\font\zhthirtysixbf = "Adobe Heiti Std" at 36pt
+\font\zhthirtysixbf = "\hei" at 36pt
 \def\thirtysixbf{\enthirtysixbf\let\zhfont\zhthirtysixbf}
 %
 \font\entenbi = cmbxti10
-\font\zhtenbi = "Adobe Heiti Std" at 10pt
+\font\zhtenbi = "\hei" at 10pt
 \def\tenbi{\entenbi\let\zhfont\zhtenbi}
 \font\enelevenbi= cmbxti10 scaled \magstephalf
-\font\zhelevenbi = "Adobe Heiti Std" at 11pt
+\font\zhelevenbi = "\hei" at 11pt
 \def\elevenbi{\enelevenbi\let\zhfont\zhelevenbi}
 \font\enfourteenbi= cmbxti10 scaled \magstep2
-\font\zhfourteenbi = "Adobe Heiti Std" at 14pt
+\font\zhfourteenbi = "\hei" at 14pt
 \def\fourteenbi{\enfourteenbi\let\zhfont\zhfourteenbi}
 %
 \font\entensc = cmcsc10
-\font\zhtensc = "Adobe Fangsong Std" at 10pt
+\font\zhtensc = "\fang" at 10pt
 \def\tensc{\entensc\let\zhfont\zhtensc}
 \font\eneightsl = cmsl8
-\font\zheightsl = "Adobe Fangsong Std" at 8pt
+\font\zheightsl = "\fang" at 8pt
 \def\eightsl{\eneightsl\let\zhfont\zheightsl}
 \font\eneighti = cmmi8
-\font\zheighti = "Adobe Kaiti Std" at 8pt
+\font\zheighti = "\kai" at 8pt
 \def\eighti{\eneighti\let\zhfont\zheighti}
 \font\eneightsy = cmsy8
-\font\zheightsy = "Adobe Song Std" at 8pt
+\font\zheightsy = "\song" at 8pt
 \def\eightsy{\eneightsy\let\zhfont\zheightsy}
 
 % % Optima fonts.
 \newif\ifmsdos
 \newif\ifedgetabs \edgetabstrue
 \newif\ifdvi \dvitrue % true if we want a .dvi file
+\newif\ifadobefont \adobefonttrue
 
 %\xrefwarningfalse