[latex3-commits] [git/LaTeX3-latex3-fontspec] font-ifx: Use \cs_if_eq:NNTF instead of comparing font names to compare fonts (67ae9eb)

Marcel Fabian Krüger tex at 2krueger.de
Sun May 29 15:17:49 CEST 2022


Repository : https://github.com/latex3/fontspec
On branch  : font-ifx
Link       : https://github.com/latex3/fontspec/commit/67ae9eb594deb5b4741de9f1b7f59f0faaf7bffa

>---------------------------------------------------------------

commit 67ae9eb594deb5b4741de9f1b7f59f0faaf7bffa
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sun May 29 15:17:49 2022 +0200

    Use \cs_if_eq:NNTF instead of comparing font names to compare fonts


>---------------------------------------------------------------

67ae9eb594deb5b4741de9f1b7f59f0faaf7bffa
 fontspec-code-internal.dtx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fontspec-code-internal.dtx b/fontspec-code-internal.dtx
index ee7e36c..62de93e 100644
--- a/fontspec-code-internal.dtx
+++ b/fontspec-code-internal.dtx
@@ -649,7 +649,7 @@
     \group_begin:
     \@@_primitive_font_set:Nnn \l_@@_tmpa_font { \@@_construct_font_call:nn {#1}   { \l_@@_pre_feat_sclist } } { \f at size pt + 1sp }
     \@@_primitive_font_set:Nnn \l_@@_tmpb_font { \@@_construct_font_call:nn {#1#2} { \l_@@_pre_feat_sclist } } { \f at size pt + 1sp }
-    \str_if_eq:eeTF { \@@_primitive_font_get_name:N \l_@@_tmpa_font } { \@@_primitive_font_get_name:N \l_@@_tmpb_font }
+    \cs_if_eq:NNTF \l_@@_tmpa_font \l_@@_tmpb_font
       { \group_end: \prg_return_false: }
       { \group_end: \prg_return_true: }
   }





More information about the latex3-commits mailing list.