Debian Codegraph @

texmf-dist/tex/latex/ctex/fontset/ctex-fontset-founder.def

raw
1 %%
2 %% This is file `ctex-fontset-founder.def',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% ctex.dtx (with options: `fontset,founder')
8 %%
9 %% Copyright (C) 2003--2022
10 %% CTEX.ORG and any individual authors listed in the documentation.
11 %% ---------------------------------------------------------------------
12 %%
13 %% This work may be distributed and/or modified under the
14 %% conditions of the LaTeX Project Public License, either
15 %% version 1.3c of this license or (at your option) any later
16 %% version. This version of this license is in
17 %% http://www.latex-project.org/lppl/lppl-1-3c.txt
18 %% and the latest version of this license is in
19 %% http://www.latex-project.org/lppl.txt
20 %% and version 1.3 or later is part of all distributions of
21 %% LaTeX version 2005/12/01 or later.
22 %%
23 %% This work has the LPPL maintenance status "maintained".
24 %%
25 %% ---------------------------------------------------------------------
26 %%
27 \GetIdInfo$Id: ctex.dtx 13a2256 2022-07-14 18:54:09 +0800 Qing Lee <[email protected]> $
28 {Founder fonts definition (CTEX)}
29 \ProvidesExplFile{ctex-fontset-founder.def}
30 {\ExplFileDate}{2.5.10}{\ExplFileDescription}
31 \ctex_fontset_case:nnn
32 {
33 \ctex_zhmap_case:nnn
34 {
35 \setCJKmainfont { FZSSK.TTF }
36 [ BoldFont = FZXBSK.TTF, ItalicFont = FZKTK.TTF ]
37 \setCJKsansfont { FZXH1K.TTF } [ BoldFont = FZHTK.TTF ]
38 \setCJKmonofont { FZFSK.TTF }
39 \setCJKfamilyfont { zhsong } { FZSSK.TTF } [ BoldFont = FZXBSK.TTF ]
40 \setCJKfamilyfont { zhhei } { FZHTK.TTF }
41 \setCJKfamilyfont { zhkai } { FZKTK.TTF }
42 \setCJKfamilyfont { zhfs } { FZFSK.TTF }
43 \setCJKfamilyfont { zhli } { FZLSK.TTF }
44 \setCJKfamilyfont { zhyou } { FZY1K.TTF } [ BoldFont = FZY3K.TTF ]
45 \ctex_punct_set:n { founder }
46 \ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
47 \ctex_punct_map_family:nn { \CJKsfdefault } { zhheil }
48 \ctex_punct_map_family:nn { \CJKttdefault } { zhfs }
49 \ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
50 \ctex_punct_map_bfseries:nn { \CJKrmdefault, zhsong } { zhsongb }
51 \ctex_punct_map_bfseries:nn { \CJKsfdefault } { zhhei }
52 \ctex_punct_map_bfseries:nn { zhyou } { zhyoub }
53 }
54 {
55 \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { founder }
56 \ctex_punct_set:n { founder }
57 \ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
58 \ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei }
59 \ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
60 }
61 { \ctex_fontset_error:n { founder } }
62 }
63 {
64 \ctex_set_upfonts:nnnnnn
65 { FZSSK.TTF }
66 { FZXBSK.TTF }
67 { FZKTK.TTF }
68 { FZXH1K.TTF }
69 { FZHTK.TTF }
70 { FZFSK.TTF }
71 \ctex_set_upfamily:nnn { zhsong } { upzhserif } { upzhserifb }
72 \ctex_set_upfamily:nnn { zhhei } { upzhsans } { upzhsansb }
73 \ctex_set_upfamily:nnn { zhfs } { upzhmono } {}
74 \ctex_set_upfamily:nnn { zhkai } { upzhserifit } {}
75 \ctex_set_upfamily:nnn { zhli } { upschrm } {}
76 \ctex_set_upfamily:nnn { zhyou } { upschgt } {}
77 \ctex_set_upmap:nnn { upstsl } { FZLSK.TTF } {}
78 \ctex_set_upmap:nnn { upstht } { FZY1K.TTF } {}
79 }
80 {
81 \setCJKmainfont { FZShuSong-Z01 }
82 [ BoldFont = FZXiaoBiaoSong-B05, ItalicFont = FZKai-Z03 ]
83 \setCJKsansfont { FZXiHeiI-Z08 } [ BoldFont = FZHei-B01 ]
84 \setCJKmonofont { FZFangSong-Z02 }
85 \setCJKfamilyfont { zhsong } { FZShuSong-Z01 }
86 [ BoldFont = FZXiaoBiaoSong-B05 ]
87 \setCJKfamilyfont { zhhei } { FZHei-B01 }
88 \setCJKfamilyfont { zhkai } { FZKai-Z03 }
89 \setCJKfamilyfont { zhfs } { FZFangSong-Z02 }
90 \setCJKfamilyfont { zhli } { FZLiShu-S01 }
91 \setCJKfamilyfont { zhyou } { FZXiYuan-M01 }
92 [ BoldFont = FZZhunYuan-M02 ]
93 }
94 \NewDocumentCommand \songti { } { \CJKfamily { zhsong } }
95 \NewDocumentCommand \heiti { } { \CJKfamily { zhhei } }
96 \NewDocumentCommand \fangsong { } { \CJKfamily { zhfs } }
97 \NewDocumentCommand \kaishu { } { \CJKfamily { zhkai } }
98 \NewDocumentCommand \lishu { } { \CJKfamily { zhli } }
99 \NewDocumentCommand \youyuan { } { \CJKfamily { zhyou } }
100 %%
101 %%
102 %% End of file `ctex-fontset-founder.def'.