Skip to content

Commit

Permalink
some more var declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
wspr committed Jul 31, 2018
1 parent de27d66 commit 047fa50
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions fontspec-api.dtx
Expand Up @@ -173,8 +173,8 @@
\@@_set_font_type:N \font
\bool_if:NTF \l_@@_ot_bool
{
\prop_get:cnN {g_@@_fontinfo_ \f@family _prop} {script-num} \l_@@_tmpf_tl
\int_set:Nn \l_@@_script_int {\l_@@_tmpf_tl}
\prop_get:cnN {g_@@_fontinfo_ \f@family _prop} {script-num} \l_@@_tmp_tl
\int_set:Nn \l_@@_script_int {\l_@@_tmp_tl}
\prop_get:cnN {g_@@_fontinfo_ \f@family _prop} {script-tag} \l_fontspec_script_tl

\@@_check_lang:NnTF \font {#1} \prg_return_true: \prg_return_false:
Expand Down
16 changes: 8 additions & 8 deletions fontspec-graphite.dtx
Expand Up @@ -66,31 +66,31 @@
% \begin{macrocode}
\prg_new_conditional:Nnn \@@_make_AAT_feature_string:Nnn {TF,T,F}
{
\tl_set:Nx \l_tmpa_tl { \XeTeXfeaturename #1 #2 }
\tl_if_empty:NTF \l_tmpa_tl
\tl_set:Nx \l_@@_tmpa_tl { \XeTeXfeaturename #1 #2 }
\tl_if_empty:NTF \l_@@_tmpa_tl
{ \prg_return_false: }
{
\int_compare:nTF { \XeTeXisexclusivefeature #1 #2 > 0 }
{
\tl_set:Nx \l_tmpb_tl {\XeTeXselectorname #1 #2\space #3}
\tl_set:Nx \l_@@_tmpb_tl {\XeTeXselectorname #1 #2\space #3}
}
{
\int_if_even:nTF {#3}
{
\tl_set:Nx \l_tmpb_tl {\XeTeXselectorname #1 #2\space #3}
\tl_set:Nx \l_@@_tmpb_tl {\XeTeXselectorname #1 #2\space #3}
}
{
\tl_set:Nx \l_tmpb_tl
\tl_set:Nx \l_@@_tmpb_tl
{
\XeTeXselectorname #1 #2\space \numexpr#3-1\relax
}
\tl_if_empty:NF \l_tmpb_tl { \tl_put_left:Nn \l_tmpb_tl {!} }
\tl_if_empty:NF \l_@@_tmpb_tl { \tl_put_left:Nn \l_@@_tmpb_tl {!} }
}
}
\tl_if_empty:NTF \l_tmpb_tl
\tl_if_empty:NTF \l_@@_tmpb_tl
{ \prg_return_false: }
{
\tl_set:Nx \l_fontspec_feature_string_tl { \l_tmpa_tl = \l_tmpb_tl }
\tl_set:Nx \l_fontspec_feature_string_tl { \l_@@_tmpa_tl = \l_@@_tmpb_tl }
\prg_return_true:
}
}
Expand Down
2 changes: 2 additions & 0 deletions fontspec-vars.dtx
Expand Up @@ -181,6 +181,8 @@
\tl_new:N \l_@@_sizedfont_tl
\tl_new:N \l_@@_this_font_tl
\tl_new:N \l_@@_tmp_tl
\tl_new:N \l_@@_tmpa_tl
\tl_new:N \l_@@_tmpb_tl
\tl_new:N \l_@@_ttc_index_tl
\tl_new:N \l_@@_emshape_query_tl
\tl_new:N \l_@@_em_switch_tl
Expand Down

0 comments on commit 047fa50

Please sign in to comment.