diff --git a/fontspec-code-api.dtx b/fontspec-code-api.dtx index be63bcc..2b21012 100644 --- a/fontspec-code-api.dtx +++ b/fontspec-code-api.dtx @@ -388,6 +388,7 @@ \@@_tl_new_if_free:N #1 #4 #1 \l_fontspec_family_tl \tl_set:Nn \l_@@_fontface_cs_tl {\l_fontspec_font} % reset +%\typeout{::::::~END~fontspec_set_family:Nnn} } \cs_new:Nn \fontspec_gset_family:Nnn { \@@_set_family:NnnN #1 {#2} {#3} \tl_gset_eq:NN } \cs_new:Nn \fontspec_set_family:Nnn { \@@_set_family:NnnN #1 {#2} {#3} \tl_set_eq:NN } diff --git a/fontspec-code-internal.dtx b/fontspec-code-internal.dtx index 74130d7..fd52183 100644 --- a/fontspec-code-internal.dtx +++ b/fontspec-code-internal.dtx @@ -78,6 +78,7 @@ \group_end: \tl_set_eq:NN \l_fontspec_family_tl \g_@@_nfss_family_tl +%\typeout{::::::::::::::::::::::::::::::} } % \end{macrocode} % \end{macro} @@ -558,7 +559,10 @@ \cs_new:Nn \fontspec_complete_fontname:Nn { \tl_set:Nx #1 {#2} - \tl_replace_all:Nne #1 {*} {\l_@@_basename_tl} + \tl_if_in:NnF \l_fontspec_fontname_tl {*} + { + \tl_replace_all:Nne #1 {*} {\l_@@_basename_tl} + } } % \end{macrocode} % \end{macro}