<div dir="ltr">If I define a font command as follow: (using the new fontspec version)<br><br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>\ExplSyntaxOn<br><pre> \DeclareDocumentCommand \setmyfont { O{} m } {
\fontspec_set_family:Nnn \myfont {Mapping=tex-text,#1}{#2}<br>}<br>\ExplSyntaxOff<br>\AtBeginDocument{\myfont}<br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br></pre><br>and choose a font say \setmyfont[ExternalLocation]{....}<br>
<br>then instead typesetting text in this font, only the name of the font will be printed. Why?<br><br>Thanks<br></div>