[XeTeX] Question about \fontspec_set_family function of fontspec
VAFA KHALIGHI
vafaklg at gmail.com
Wed Sep 14 18:36:52 CEST 2011
If I define a font command as follow: (using the new fontspec version)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ExplSyntaxOn
\DeclareDocumentCommand \setmyfont { O{} m } {
\fontspec_set_family:Nnn \myfont {Mapping=tex-text,#1}{#2}
}
\ExplSyntaxOff
\AtBeginDocument{\myfont}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
and choose a font say \setmyfont[ExternalLocation]{....}
then instead typesetting text in this font, only the name of the font will
be printed. Why?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20110915/37113fa1/attachment.html>
More information about the XeTeX
mailing list