| 1 |
%% |
| 2 |
%% This is file `ctex-fontset-ubuntu.def', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% ctex.dtx (with options: `fontset,ubuntu') |
| 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 |
{Ubuntu fonts definition (CTEX)} |
| 29 |
\ProvidesExplFile{ctex-fontset-ubuntu.def} |
| 30 |
{\ExplFileDate}{2.5.10}{\ExplFileDescription} |
| 31 |
\ctex_fontset_case:nnnn |
| 32 |
{ \ctex_fontset_error:n { ubuntu } } |
| 33 |
{ |
| 34 |
\ctex_zhmap_case:nnn |
| 35 |
{ |
| 36 |
\setCJKmainfont { :2:NotoSerifCJK-Regular.ttc } |
| 37 |
[ BoldFont = :2:NotoSerifCJK-Bold.ttc, ItalicFont = gkai00mp.ttf ] |
| 38 |
\setCJKsansfont { :2:NotoSansCJK-Regular.ttc } |
| 39 |
[ BoldFont = :2:NotoSansCJK-Bold.ttc ] |
| 40 |
\setCJKmonofont { :2:NotoSerifCJK-Regular.ttc } |
| 41 |
[ BoldFont = :2:NotoSerifCJK-Bold.ttc ] |
| 42 |
\setCJKfamilyfont { zhsong } { :2:NotoSerifCJK-Regular.ttc } |
| 43 |
[ BoldFont = :2:NotoSerifCJK-Bold.ttc ] |
| 44 |
\setCJKfamilyfont { zhhei } { :2:NotoSansCJK-Regular.ttc } |
| 45 |
[ BoldFont = :2:NotoSansCJK-Bold.ttc ] |
| 46 |
\setCJKfamilyfont { zhkai } { gkai00mp.ttf } |
| 47 |
\ctex_punct_set:n { ubuntu } |
| 48 |
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong } |
| 49 |
\ctex_punct_map_family:nn { \CJKsfdefault } { zhhei } |
| 50 |
\ctex_punct_map_family:nn { \CJKttdefault } { zhsong } |
| 51 |
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai } |
| 52 |
\ctex_punct_map_bfseries:nn { \CJKsfdefault, zhhei } { zhheib } |
| 53 |
\ctex_punct_map_bfseries:nn |
| 54 |
{ \CJKrmdefault, \CJKttdefault, zhsong } |
| 55 |
{ zhsongb } |
| 56 |
} |
| 57 |
{ |
| 58 |
\ctex_load_zhmap:nnnn { rm } { zhhei } { zhsong } { ubuntu } |
| 59 |
\ctex_punct_set:n { ubuntu } |
| 60 |
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong } |
| 61 |
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei } |
| 62 |
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai } |
| 63 |
} |
| 64 |
{ \ctex_fontset_error:n { ubuntu } } |
| 65 |
} |
| 66 |
{ |
| 67 |
\ctex_set_upmap_unicode:nnn { upserif } |
| 68 |
{ :2:NotoSerifCJK-Regular.ttc } { :2:NotoSerifCJK-Bold.ttc } |
| 69 |
\ctex_set_upmap_unicode:nnn { upsans } |
| 70 |
{ :2:NotoSansCJK-Regular.ttc } { :2:NotoSansCJK-Bold.ttc } |
| 71 |
\ctex_set_upmap_unicode:nnn { upmono } |
| 72 |
{ :2:NotoSerifCJK-Regular.ttc } { } |
| 73 |
\ctex_set_upmap:nnn { upserifit } { gkai00mp.ttf } { } |
| 74 |
\ctex_set_upfamily:nnn { zhsong } { upzhserif } { upzhserifb } |
| 75 |
\ctex_set_upfamily:nnn { zhhei } { upzhsans } { upzhsansb } |
| 76 |
\ctex_set_upfamily:nnn { zhkai } { upzhserifit } { } |
| 77 |
} |
| 78 |
{ |
| 79 |
\setCJKmainfont { Noto~Serif~CJK~SC } [ ItalicFont = AR~PL~KaitiM~GB ] |
| 80 |
\setCJKsansfont { Noto~Sans~CJK~SC } |
| 81 |
\setCJKmonofont { Noto~Serif~CJK~SC } |
| 82 |
\setCJKfamilyfont { zhsong } { Noto~Serif~CJK~SC } |
| 83 |
\setCJKfamilyfont { zhhei } { Noto~Sans~CJK~SC } |
| 84 |
\setCJKfamilyfont { zhkai } { AR~PL~KaitiM~GB } |
| 85 |
} |
| 86 |
\NewDocumentCommand \songti { } { \CJKfamily { zhsong } } |
| 87 |
\NewDocumentCommand \heiti { } { \CJKfamily { zhhei } } |
| 88 |
\NewDocumentCommand \kaishu { } { \CJKfamily { zhkai } } |
| 89 |
%% |
| 90 |
%% |
| 91 |
%% End of file `ctex-fontset-ubuntu.def'. |