[XeTeX] How to access different style of a same font?
Jonathan Kew
jonathan at jfkew.plus.com
Wed Feb 11 17:05:54 CET 2009
On 11 Feb 2009, at 15:50, Mi CHEN wrote:
> Hi,
>
> I have a font with two styles, fc-list info is as follows
>
> STHeiti:style=Light
> STHeiti:style=Regular
>
> As can be seen, they share the same font name but with different
> styles and they are different font files, too.
>
> The problem is how could I access the two styles. I tried "STHeiti
> Light" but failed as I expected. I tried "STHeiti:style=Light"
> either but it is just the same with "STHeiti:style=Regular". Any
> ideas? Thanks!
You didn't mention what platform you're using, but trying this on Mac
OS X, at least, they work as expected with
\font\A = "STHeiti-Regular"
\font\B = "STHeiti-Light"
According to FontBook, STHeiti-Light is also known as STXihei, and
indeed that name also works.
Note that the Latin in the two faces is virtually identical, so with
English sample text there may not be any visible difference, although
the Han glyphs are significantly heavier in the Regular face.
JK
More information about the XeTeX
mailing list