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.

75 lines
3.1 KiB

%%
%% This is file `ctex-fontset-puhui.def
\GetIdInfo$Id: ctex.dtx 07425fe 2022-01-29 16:43:36 +0800 leyyer <leyyer@gmail.com> $
{Founder fonts definition (CTEX)}
\ProvidesExplFile{ctex-fontset-puhui.def}
{\ExplFileDate}{2.5.6}{\ExplFileDescription}
\ctex_fontset_case:nnn
{
\ctex_zhmap_case:nnn
{
\setCJKmainfont {Alibaba-PuHuiTi} [%
AutoFakeSlant=true,%
ItalicFont=AdobeKaitiStd-Regular.otf,%
ItalicFeatures=FakeSlant,%
BoldItalicFeatures=FakeSlant]
\setCJKsansfont {Alibaba-PuHuiTi} [AutoFakeSlant=true,ItalicFont=AdobeKaitiStd-Regular.otf]
\setCJKmonofont {Alibaba-PuHuiTi}
\setCJKfamilyfont { zhsong } {Alibaba-PuHuiTi}
\setCJKfamilyfont { zhhei } {Alibaba-PuHuiTi}
\setCJKfamilyfont { zhkai } {AdobeKaitiStd-Regular.otf}
[ cmap = UniGB-UTF16-H ]
\setCJKfamilyfont { zhfs } {AdobeFangsongStd-Regular.otf}
[ cmap = UniGB-UTF16-H ]
\ctex_punct_set:n { puhui }
\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 } { puhui }
\ctex_punct_set:n { puhui }
\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 { puhui } }
}
{
\ctex_set_upfonts:nnnnnn
{ Alibaba-PuHuiTi-Regular.otf}
{ Alibaba-PuHuiTi-Regular.otf}
{ AdobeKaitiStd-Regular.otf }
{ Alibaba-PuHuiTi-Regular.otf}
{ Alibaba-PuHuiTi-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 {Alibaba-PuHuiTi} [%
ItalicFont=AdobeKaitiStd-Regular.otf,%
AutoFakeSlant=true,%
ItalicFeatures=FakeSlant,%
BoldItalicFeatures=FakeSlant]
\setCJKsansfont {Alibaba-PuHuiTi}
\setCJKmonofont {Alibaba-PuHuiTi}
\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-puhui.def'.