[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] about the freetype font style
From: |
Werner LEMBERG |
Subject: |
Re: [ft] about the freetype font style |
Date: |
Tue, 21 Apr 2009 07:44:57 +0200 (CEST) |
> When I use TTF font in windows, it seems that there are always four
> font styles for user to choose regular bold, Italic, and oblique.
Not always, but most families traditionally consist of four fonts
which provides these four styles.
> I check the souce code in freetype. It seems that
> face->os2.fsSelection stores the font style in one certain font
> files. But I have no idea how to get the font style I want.
Simply select the right font. There is not a single font which
contains all four styles.
> Can we set and change the font style that to be displayed in
> freetype engine?
Information about the style can be found in the TrueType `name'
table. Please check the OpenType specification:
http://www.microsoft.com/typography/otspec160/name.htm
Werner