diff options
author | Karl Berry <karl@freefriends.org> | 2020-01-23 21:54:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-01-23 21:54:34 +0000 |
commit | fb7a86c739d47ad1fe1a6e483b01b0240a83c854 (patch) | |
tree | bb844326b2fcc9773854406f9d3c12c6fb7b750b /Master/texmf-dist/source/latex/fontspec/fontspec-code-user.dtx | |
parent | 5d1480d3fcb2ca5d3647a5a5a56fab1506aafa4b (diff) |
fontspec (23jan20)
git-svn-id: svn://tug.org/texlive/trunk@53512 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/fontspec/fontspec-code-user.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/fontspec/fontspec-code-user.dtx | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/Master/texmf-dist/source/latex/fontspec/fontspec-code-user.dtx b/Master/texmf-dist/source/latex/fontspec/fontspec-code-user.dtx index aa739b4dee8..e4ba3539d0b 100644 --- a/Master/texmf-dist/source/latex/fontspec/fontspec-code-user.dtx +++ b/Master/texmf-dist/source/latex/fontspec/fontspec-code-user.dtx @@ -32,12 +32,20 @@ % \begin{macro}{\ttfamily} % Add an encoding switch to the three family commands. % \begin{macrocode} -\tl_replace_all:cnn { rmfamily~ } { \fontfamily } - { \fontencoding \l_@@_rmfamily_encoding_tl \fontfamily } -\tl_replace_all:cnn { sffamily~ } { \fontfamily } - { \fontencoding \l_@@_sffamily_encoding_tl \fontfamily } -\tl_replace_all:cnn { ttfamily~ } { \fontfamily } - { \fontencoding \l_@@_ttfamily_encoding_tl \fontfamily } +\cs_if_exist:NTF \@rmfamilyhook + { + \tl_put_right:Nn \@rmfamilyhook {\fontencoding \l_@@_rmfamily_encoding_tl} + \tl_put_right:Nn \@sffamilyhook {\fontencoding \l_@@_sffamily_encoding_tl} + \tl_put_right:Nn \@ttfamilyhook {\fontencoding \l_@@_ttfamily_encoding_tl} + } + { + \tl_replace_all:cnn { rmfamily~ } { \fontfamily } + { \fontencoding \l_@@_rmfamily_encoding_tl \fontfamily } + \tl_replace_all:cnn { sffamily~ } { \fontfamily } + { \fontencoding \l_@@_sffamily_encoding_tl \fontfamily } + \tl_replace_all:cnn { ttfamily~ } { \fontfamily } + { \fontencoding \l_@@_ttfamily_encoding_tl \fontfamily } + } \tl_set_eq:NN \l_@@_rmfamily_encoding_tl \g_fontspec_encoding_tl \tl_set_eq:NN \l_@@_sffamily_encoding_tl \g_fontspec_encoding_tl \tl_set_eq:NN \l_@@_ttfamily_encoding_tl \g_fontspec_encoding_tl |