[XeTeX] Question about \fontspec_set_family function of fontspec

VAFA KHALIGHI vafaklg at gmail.com
Fri Sep 16 03:09:53 CEST 2011


Thanks for answering my questions.

On Thu, Sep 15, 2011 at 11:53 AM, Will Robertson <wspr81 at gmail.com> wrote:

> On 2011-09-15 02:13:15 +0930, VAFA KHALIGHI <vafaklg at gmail.com> said:
>
>  Here is my minimal example. What is the difference between \newfontfamily
>> and \fontspec_set_family?
>>
>
> Sorry, I should have added more information to that section of the manual.
> Here's the new text for \fontspec_set_family:
>
> % Defines a new NFSS family from given \meta{features} and \meta{font},
> % and stores the family name in the variable \meta{family}.
> % This font family can then be selected with standard \LaTeX\ commands
> % \cs{fontfamily}\marg{family}\**cs{selectfont}.
>
> In other words:
>
>  \newfontfamily \foo [features] {myfont}
>  \foo
>
> defines a new font family and selects it (cf., \sffamily), whereas the
> equivalent with internal commands is
>
>  \fontspec_set_family:Nnn \foofamily {features} {myfont}
>  \fontfamily{\foofamily}\**selectfont
>
> (cf. \fontfamily{sf}\selectfont).
>
> Hope this helps,
> Will
>
>
>
>
> ------------------------------**--------------------
> Subscriptions, Archive, and List information, etc.:
>  http://tug.org/mailman/**listinfo/xetex<http://tug.org/mailman/listinfo/xetex>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20110916/62770498/attachment.html>


More information about the XeTeX mailing list