You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
3.4 KiB

%%
%% This is file `ctex-fontset-hans.def
%%
\GetIdInfo$Id: ctex.dtx 07425fe 2022-01-29 16:43:36 +0800 leyyer <leyyer@gmail.com> $
{Founder fonts definition (CTEX)}
\ProvidesExplFile{ctex-fontset-hans.def}
{\ExplFileDate}{2.5.6}{\ExplFileDescription}
\ctex_fontset_case:nnn
{
\ctex_zhmap_case:nnn
{
\setCJKmainfont { SourceHanSerifSC } [%
ItalicFont=AdobeKaitiStd-Regular.otf,%
AutoFakeSlant=true,%
ItalicFeatures=FakeSlant,%
BoldItalicFeatures=FakeSlant]
\setCJsansfont { SourceHanSansSC } [%
ItalicFont=AdobeKaitiStd-Regular.otf,%
AutoFakeSlant=true,%
ItalicFeatures=FakeSlant,%
BoldItalicFeatures=FakeSlant]
\setCJKmonofont { SourceHanMono }
\setCJKfamilyfont { zhsong } { SourceHanSerifSC}
\setCJKfamilyfont { zhhei } { SourceHanSansSC}
\setCJKfamilyfont { zhkai } { AdobeKaitiStd-Regular.otf }
[ cmap = UniGB-UTF16-H ]
\setCJKfamilyfont { zhfs } { AdobeFangsongStd-Regular.otf }
[ cmap = UniGB-UTF16-H ]
\ctex_punct_set:n { hans }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
\ctex_punct_map_family:nn { \CJKsfdefault } { zhheil }
\ctex_punct_map_family:nn { \CJKttdefault } { zhfs }
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
\ctex_punct_map_bfseries:nn { \CJKrmdefault, zhsong } { zhsongb }
\ctex_punct_map_bfseries:nn { \CJKsfdefault } { zhhei }
}
{
\ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { hans }
\ctex_punct_set:n { hans }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei }
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
}
{ \ctex_fontset_error:n { hans } }
}
{
\ctex_set_upfonts:nnnnnn
{ SourceHanSerifSC-Regular.otf}
{ SourceHanHansSC-Regular.otf}
{ AdobeKaitiStd-Regular.otf }
{ SourceHanHansSC-Regular.otf}
{ SourceHanHansSC-Regular.otf}
{ AdobeFangsongStd-Regular.otf }
\ctex_set_upfamily:nnn { zhsong } { upzhserif } { upzhserifb }
\ctex_set_upfamily:nnn { zhhei } { upzhsans } { upzhsansb }
\ctex_set_upfamily:nnn { zhfs } { upzhmono } {}
\ctex_set_upfamily:nnn { zhkai } { upzhserifit } {}
}
{
\setCJKmainfont { SourceHanSerifSC } [%
ItalicFont=AdobeKaitiStd-Regular.otf,%
AutoFakeSlant=true,%
ItalicFeatures=FakeSlant,%
BoldItalicFeatures=FakeSlant]
\setCJKsansfont { SourceHanSansSC } [%
ItalicFont=AdobeKaitiStd-Regular.otf,%
AutoFakeSlant=true,%
ItalicFeatures=FakeSlant,%
BoldItalicFeatures=FakeSlant]
\setCJKmonofont { SourceHanMono }
\setCJKfamilyfont { zhsong } { AdobeSongStd-Light }
\setCJKfamilyfont { zhhei } { SourceHanSansSC }
\setCJKfamilyfont { zhkai } { AdobeKaitiStd-Regular }
\setCJKfamilyfont { zhfs } { AdobeFangsongStd-Regular }
}
\NewDocumentCommand \songti { } { \CJKfamily { zhsong } }
\NewDocumentCommand \heiti { } { \CJKfamily { zhhei } }
\NewDocumentCommand \fangsong { } { \CJKfamily { zhfs } }
\NewDocumentCommand \kaishu { } { \CJKfamily { zhkai } }
%%
%%
%% End of file `ctex-fontset-hans.def'.