OSDN Git Service

Dnode -> node.direct (WIP)
[luatex-ja/luatexja.git] / src / addons / luatexja-zhfonts.sty
1 % luatexja-zhfonts.sty
2 \NeedsTeXFormat{LaTeX2e}
3 \ProvidesPackage{luatexja-zhfonts}[2013/09/10 Setting for Chinese fonts]
4 \RequirePackage{luatexja-fontspec}
5
6 % SinoType 华文字体
7 \DeclareOption{SinoType}{
8 \setmainjfont[BoldFont=STZhongsong]{STSong}
9 \setsansjfont[BoldFont=STXihei]{STXihei}
10 \newjfontface\kai{STKaiti}
11 \newjfontface\fang{STFangsong}
12 }
13
14 % ZhongYi 中易字体
15 \DeclareOption{ZhongYi}{
16 \setmainjfont[BoldFont=SimHei]{SimSun}
17 \setsansjfont[BoldFont=SimHei]{SimHei}
18 \newjfontface\kai{KaiTi}
19 \newjfontface\fang{FangSong}
20 }
21
22 % Adobe Adobe字体
23 \DeclareOption{Adobe}{
24 \setmainjfont[BoldFont=AdobeHeitiStd-Regular]{AdobeSongStd-Light}
25 \setsansjfont[BoldFont=AdobeHeitiStd-Regular]{AdobeHeitiStd-Regular}
26 \newjfontface\kai{AdobeKaitiStd-Regular}
27 \newjfontface\fang{AdobeFangsongStd-Regular}
28 }
29
30 % Founder 方正字体
31 \DeclareOption{Founder}{
32 \setmainjfont[BoldFont=FZXiaoBiaoSong-B05]{FZShuSong-Z01}
33 \setsansjfont[BoldFont=FZHei-B01]{FZHei-B01}
34 \newjfontface\kai{FZKai-Z03}
35 \newjfontface\fang{FZFangSong-Z02}
36 }
37
38 % HanYi-J 汉仪字体-文房字宝-简体
39 % HanYi-F 汉仪字体-文房字宝-繁体
40 % 书宋一简 HYA9GJM.ttf
41 % 中宋简  HYA3GJM.ttf
42 % 中黑简  HYB1GJM.ttf
43 % 粗黑简  HYB9GJM.ttf
44 % 楷体简  HYC1GJM.ttf
45 % 仿宋简  HYD1GJM.ttf
46 \DeclareOption{HanYi-J}{
47 \setmainjfont[BoldFont=HYA9GJM.ttf]{HYA3GJM.ttf}
48 \setsansjfont[BoldFont=HYB9GJM.ttf]{HYB1GJM.ttf}
49 \newjfontface\kai{HYC1GJM.ttf}
50 \newjfontface\fang{HYD1GJM.ttf}
51 }
52
53 \DeclareOption{HanYi-F}{
54 \setmainjfont[BoldFont=HYA9GFM.ttf]{HYA3GFM.ttf}
55 \setsansjfont[BoldFont=HYB9GFM.ttf]{HYB1GFM.ttf}
56 \newjfontface\kai{HYC1GFM.ttf}
57 \newjfontface\fang{HYD1GFM.ttf}
58 }
59
60 % cwTeX TrueType (in Debian/Ubuntu)
61 \DeclareOption{cwttf}{
62 \setmainjfont[BoldFont=cwTeXHeiBold]{cwTeXMing}
63 \setsansjfont[BoldFont=cwTeXHeiBold]{cwTeXHeiBold}
64 \newjfontface\kai{cwTeXKai}
65 \newjfontface\fang{cwTeXFangSong}
66 }
67
68 % Fandol fonts http://fandol-doc.googlecode.com/files/fandol-fonts.7z
69 \DeclareOption{Fandol}{
70 \setmainjfont[BoldFont=FandolSong-Bold]{FandolSong-Regular}
71 \setsansjfont[BoldFont=FandolHei-Bold]{FandolHei-Regular}
72 \newjfontface\kai{FandolKai-Regular}
73 \newjfontface\fang{FandolFang-Regular}
74 }
75
76 \ProcessOptions\relax
77 \endinput