Skip to content

Commit

Permalink
xeCJK: 不缓存 \nullfont
Browse files Browse the repository at this point in the history
fixed #517
  • Loading branch information
qinglee committed Jun 4, 2020
1 parent ce819af commit 012f62c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions xeCJK/xeCJK.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ Copyright and Licence
% \changes{v3.8.0}{2020/02/09}{清理过时的兼容性补丁代码。}
% \changes{v3.8.3}{2020/04/07}{删除 \texttt{\_nopar}。}
%
% \CheckSum{10882}
% \CheckSum{10884}
% \GetFileId{xeCJK.sty}
%
% \title{\bfseries\pkg{xeCJK} 宏包}
Expand Down Expand Up @@ -1823,11 +1823,13 @@ Copyright and Licence
% \end{macro}
%
% \begin{macro}[int]{\xeCJK_font_gset_to_current:N}
% \changes{v3.8.4}{2020/06/04}{不缓存 \tn{nullfont}。}
% |#1| 是控制序列的名字,令它等于当前字体命令。
% \begin{macrocode}
\cs_new_protected:Npn \xeCJK_font_gset_to_current:N #1
{ \exp_after:wN \cs_gset_eq:NN \exp_after:wN #1 \tex_the:D \tex_font:D }
\cs_generate_variant:Nn \xeCJK_font_gset_to_current:N { c }
\cs_new_protected:Npn \xeCJK_font_gset_to_current:N
{ \exp_after:wN \@@_font_gset_to_current_aux:NN \tex_the:D \tex_font:D }
\cs_new_protected:Npn \@@_font_gset_to_current_aux:NN #1#2
{ \cs_if_eq:NNF #1 \tex_nullfont:D { \cs_gset_eq:NN #2#1 } }
% \end{macrocode}
% \end{macro}
%
Expand Down

0 comments on commit 012f62c

Please sign in to comment.