Skip to content

Commit

Permalink
remove branching for small caps detection
Browse files Browse the repository at this point in the history
slightly less efficient for luatex right now but will need to branch if i ever add graphite support anyway
  • Loading branch information
wspr committed May 11, 2024
1 parent e6fb33e commit 4ce232c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fontspec-code-internal.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1031,16 +1031,15 @@
% \end{macro}
%
%
% \begin{macro}{\@@_make_smallcaps:TF}
% \begin{macro}{\@@_make_ot_smallcaps:TF}
% \label{mac:makesmallcaps}
% This macro checks if the font contains small caps.
% \begin{macrocode}
%<LU>\cs_new:Nn \@@_make_smallcaps:TF
%<XE>\cs_new:Nn \@@_make_ot_smallcaps:TF
\cs_new:Nn \@@_make_ot_smallcaps:TF
{
\exp_args:No \@@_check_ot_feat:NnTF \l_@@_fontface_cs_tl {smcp} {#1} {#2}
}
%<*XE>
\cs_new:Nn \@@_make_smallcaps:TF
{
\bool_if:NTF \l_@@_ot_bool
Expand All @@ -1053,9 +1052,9 @@
}
}
}
%</XE>
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\@@_update_featstr:n}
% \cmd{\g_@@_rawfeatures_sclist} is the string used to define the list of specific
Expand Down

0 comments on commit 4ce232c

Please sign in to comment.