[XeTeX] fontspec: loading different shapes/scales of one font as different font instances?

Khaled Hosny khaledhosny at eglug.org
Sun Aug 1 20:11:44 CEST 2010


On Sun, Aug 01, 2010 at 07:53:58PM +0200, BPJ wrote:
> 2010-07-30 06:25, Will Robertson skrev:
> >\newfontfamily\foo[<options>]{<font name>}
> 
> The ability to say
> 
>     \newfontfamily\foo{Foo Bold} Bar baz
> 
> or rather
> 
>     \newfontfamily\foo[Style=Bold]{Foo} Bar baz
> 
>     % Where "Bold" could be Bold/Italic/BoldItalic/SmallCaps/Normal
> 
> and get the equivalent of
> 
>     \newfontfamily\foo{Foo} \bfseries Bar baz
> 
> Though I guess providing a Style option for the user
> and insert \bfseries etc. / define commands including
> them will actually be necessary anyway...

If you want a specific style, then use \newfontface not \newfontfamily.


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


More information about the XeTeX mailing list