| 1 |
%% |
| 2 |
%% This is file `ctex-fontset-windows.def', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% ctex.dtx (with options: `fontset,windows') |
| 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 |
{Windows fonts definition (CTEX)} |
| 29 |
\ProvidesExplFile{ctex-fontset-windows.def} |
| 30 |
{\ExplFileDate}{2.5.10}{\ExplFileDescription} |
| 31 |
\file_if_exist:nTF { \c_dollar_str WINDIR/Fonts/msyh.ttc } |
| 32 |
{ \tl_const:Nn \c__ctex_msyh_suffix_tl { ttc } } |
| 33 |
{ |
| 34 |
\file_if_exist:nTF { msyh.ttc } |
| 35 |
{ \tl_const:Nn \c__ctex_msyh_suffix_tl { ttc } } |
| 36 |
{ \tl_const:Nn \c__ctex_msyh_suffix_tl { ttf } } |
| 37 |
} |
| 38 |
\ctex_fontset_case:nnn |
| 39 |
{ |
| 40 |
\ctex_zhmap_case:nnn |
| 41 |
{ |
| 42 |
\ctex_punct_set:n { windows } |
| 43 |
\setCJKmainfont { simsun.ttc } |
| 44 |
[ BoldFont = simhei.ttf, ItalicFont = simkai.ttf ] |
| 45 |
\setCJKsansfont { msyh.\c__ctex_msyh_suffix_tl } |
| 46 |
[ BoldFont = msyhbd.\c__ctex_msyh_suffix_tl ] |
| 47 |
\setCJKmonofont { simfang.ttf } |
| 48 |
\setCJKfamilyfont { zhsong } { simsun.ttc } |
| 49 |
\setCJKfamilyfont { zhhei } { simhei.ttf } |
| 50 |
\setCJKfamilyfont { zhfs } { simfang.ttf } |
| 51 |
\setCJKfamilyfont { zhkai } { simkai.ttf } |
| 52 |
\setCJKfamilyfont { zhyahei } { msyh.\c__ctex_msyh_suffix_tl } |
| 53 |
[ BoldFont = msyhbd.\c__ctex_msyh_suffix_tl ] |
| 54 |
\setCJKfamilyfont { zhli } { simli.ttf } |
| 55 |
\setCJKfamilyfont { zhyou } { simyou.ttf } |
| 56 |
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong } |
| 57 |
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei } |
| 58 |
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai } |
| 59 |
\ctex_punct_map_family:nn { \CJKsfdefault } { zhyahei } |
| 60 |
\ctex_punct_map_bfseries:nn { \CJKsfdefault, zhyahei } { zhyaheib } |
| 61 |
\ctex_punct_map_family:nn { \CJKttdefault } { zhfs } |
| 62 |
} |
| 63 |
{ |
| 64 |
\ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { windows } |
| 65 |
\ctex_punct_set:n { windows } |
| 66 |
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong } |
| 67 |
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei } |
| 68 |
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai } |
| 69 |
} |
| 70 |
{ } |
| 71 |
} |
| 72 |
{ |
| 73 |
\ctex_set_upfonts:nnnnnn |
| 74 |
{ simsun.ttc } |
| 75 |
{ simhei.ttf } |
| 76 |
{ simkai.ttf } |
| 77 |
{ msyh.\c__ctex_msyh_suffix_tl } |
| 78 |
{ msyhbd.\c__ctex_msyh_suffix_tl } |
| 79 |
{ simfang.ttf } |
| 80 |
\ctex_set_upfamily:nnn { zhsong } { upzhserif } {} |
| 81 |
\ctex_set_upfamily:nnn { zhhei } { upzhserifb } {} |
| 82 |
\ctex_set_upfamily:nnn { zhfs } { upzhmono } {} |
| 83 |
\ctex_set_upfamily:nnn { zhkai } { upzhserifit } {} |
| 84 |
\ctex_set_upfamily:nnn { zhyahei } { upzhsans } { upzhsansb } |
| 85 |
\ctex_set_upfamily:nnn { zhli } { upschrm } {} |
| 86 |
\ctex_set_upfamily:nnn { zhyou } { upschgt } {} |
| 87 |
\ctex_set_upmap:nnn { upstsl } { simli.ttf } {} |
| 88 |
\ctex_set_upmap:nnn { upstht } { simyou.ttf } {} |
| 89 |
} |
| 90 |
{ |
| 91 |
\setCJKmainfont { SimSun } [ BoldFont = SimHei , ItalicFont = KaiTi ] |
| 92 |
\setCJKsansfont { Microsoft~YaHei } [ BoldFont = *~Bold ] |
| 93 |
\setCJKmonofont { FangSong } |
| 94 |
\setCJKfamilyfont { zhsong } { SimSun } |
| 95 |
\setCJKfamilyfont { zhhei } { SimHei } |
| 96 |
\setCJKfamilyfont { zhfs } { FangSong } |
| 97 |
\setCJKfamilyfont { zhkai } { KaiTi } |
| 98 |
\setCJKfamilyfont { zhyahei } { Microsoft~YaHei } [ BoldFont = *~Bold ] |
| 99 |
\setCJKfamilyfont { zhli } { LiSu } |
| 100 |
\setCJKfamilyfont { zhyou } { YouYuan } |
| 101 |
} |
| 102 |
\NewDocumentCommand \songti { } { \CJKfamily { zhsong } } |
| 103 |
\NewDocumentCommand \heiti { } { \CJKfamily { zhhei } } |
| 104 |
\NewDocumentCommand \fangsong { } { \CJKfamily { zhfs } } |
| 105 |
\NewDocumentCommand \kaishu { } { \CJKfamily { zhkai } } |
| 106 |
\NewDocumentCommand \lishu { } { \CJKfamily { zhli } } |
| 107 |
\NewDocumentCommand \youyuan { } { \CJKfamily { zhyou } } |
| 108 |
\NewDocumentCommand \yahei { } { \CJKfamily { zhyahei } } |
| 109 |
%% |
| 110 |
%% |
| 111 |
%% End of file `ctex-fontset-windows.def'. |