[XeTeX] How to access different style of a same font?
Mi CHEN
chenmi1999 at gmail.com
Wed Feb 11 17:56:28 CET 2009
Hi, JK
Thanks for your reply! Actually I'm using Linux + TeXlive 2008. As you said,
they can be called by STHeiti-Regular and STHeiti-Light respectively. Also,
STHei:style=Light can be also called by STXihei. The font property of the
result pdf also says it contains STXihei.
On Thu, Feb 12, 2009 at 12:05 AM, Jonathan Kew <jonathan at jfkew.plus.com>wrote:
> 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
>
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
>
--
Regards,
Mi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20090212/da296087/attachment.html
More information about the XeTeX
mailing list