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

Marcel Fabian Krüger tex at 2krueger.de
Fri Jul 1 22:26:30 CEST 2022


Repository : https://github.com/latex3/fontspec
On branch  : develop
Link       : https://github.com/latex3/fontspec/commit/cfa355177921cba8bc0a20b9d12d3606985c6547

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

commit cfa355177921cba8bc0a20b9d12d3606985c6547
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


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

cfa355177921cba8bc0a20b9d12d3606985c6547
 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 0758f79..8437939 100644
--- a/fontspec-code-internal.dtx
+++ b/fontspec-code-internal.dtx
@@ -660,7 +660,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.