diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/fontspec/fontspec-keyval.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/fontspec/fontspec-keyval.dtx | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/Master/texmf-dist/source/latex/fontspec/fontspec-keyval.dtx b/Master/texmf-dist/source/latex/fontspec/fontspec-keyval.dtx index 13ed395a784..900f8fd7840 100644 --- a/Master/texmf-dist/source/latex/fontspec/fontspec-keyval.dtx +++ b/Master/texmf-dist/source/latex/fontspec/fontspec-keyval.dtx @@ -1,3 +1,4 @@ +%%^^A%% fontspec-keyval.dtx -- part of FONTSPEC <wspr.io/fontspec> % \section{Font loading (\pkg{keyval}) definitions} % @@ -105,8 +106,10 @@ { \int_compare:nTF {\l_keys_choice_int <= 4} { %<*xetexx> - \tl_set:Nv \l_fontspec_renderer_tl - { g_fontspec_renderer_tag_ \l_keys_choice_tl } + \tl_set:Nx \l_fontspec_renderer_tl + { + \int_case:nn \l_keys_choice_int { 1 {/AAT} 2 {/OT} 3 {/OT} 4 {/GR} } + } \tl_gset:Nx \g_@@_single_feat_tl { \l_fontspec_renderer_tl } %</xetexx> %<*luatex> @@ -118,19 +121,15 @@ \@@_warning:nx {only-luatex-feature} {Renderer=Full/Basic} %</xetexx> %<*luatex> - \tl_set:Nv \l_fontspec_mode_tl - { g_fontspec_mode_tag_ \l_keys_choice_tl } + \tl_set:Nx \l_fontspec_mode_tl + { + \int_case:nn \l_keys_choice_int { 5 {node} 6 {base} } + } \tl_gset:Nx \g_@@_single_feat_tl { mode=\l_fontspec_mode_tl } %</luatex> } } } -\tl_set:cn {g_fontspec_renderer_tag_AAT} {/AAT} -\tl_set:cn {g_fontspec_renderer_tag_ICU} {/OT} -\tl_set:cn {g_fontspec_renderer_tag_OpenType} {/OT} -\tl_set:cn {g_fontspec_renderer_tag_Graphite} {/GR} -\tl_set:cn {g_fontspec_mode_tag_Full} {node} -\tl_set:cn {g_fontspec_mode_tag_Basic} {base} % \end{macrocode} % % \paragraph{OpenType script/language} @@ -371,7 +370,7 @@ \tl_set:Nx \l_@@_nfss_fam_tl { #1 } \cs_undefine:c {g_@@_UID_\l_@@_fontid_tl} \tl_if_exist:NT \l_fontspec_family_tl - { \cs_undefine:c {g_@@_ \l_fontspec_family_tl _prop} } + { \cs_undefine:c {g_@@_fontinfo_ \l_fontspec_family_tl _prop} } } % \end{macrocode} % @@ -847,3 +846,19 @@ %</fontspec&(xetexx|luatex)> % \end{macrocode} % \fi + + +\endinput + +% /© +% ------------------------------------------------ +% The FONTSPEC package <wspr.io/fontspec> +% ------------------------------------------------ +% Copyright 2004-2017 Will Robertson, LPPL "maintainer" +% Copyright 2009-2013 Khaled Hosny +% ------------------------------------------------ +% This package is free software and may be redistributed and/or modified under +% the conditions of the LaTeX Project Public License, version 1.3c or higher +% (your choice): <http://www.latex-project.org/lppl/>. +% ------------------------------------------------ +% ©/ |