W3C home > Mailing lists > Public > www-style@w3.org > August 2007

Re: Why doesn't 'font-weight: 100' work yet?

From: David Hyatt <hyatt@apple.com>
Date: Wed, 22 Aug 2007 13:19:11 -0700
Cc: www-style@w3.org
Message-Id: <01B4F490-0440-48F0-850E-B88A15A95721@apple.com>
To: Bert Bos <bert@w3.org>

WebKit only supports normal and bold weights right now.  We do plan to  
support the full range of weights in the future.

http://bugs.webkit.org/show_bug.cgi?id=6484

You can follow our progress in the bug.

dave
(hyatt@apple.com)

On Aug 22, 2007, at 9:17 AM, Bert Bos wrote:

> It used to be that the font APIs on many operating systems weren't  
> rich
> enough to put more than two weights in one family. That's no longer  
> the
> case, but most browsers still don't seem to recognize any weights  
> other
> than 'normal' or 'bold'. Why is that?
>
> E.g., the fontconfig library on my system finds all three weights of
> Gill Sans, but my browser doesn't:
>
>    $ fc-match "Gill Sans:weight=thin:slant=roman"        # 100
>    GillSansLight.ttf: "Gill Sans" "Light"
>    $ fc-match "Gill Sans:weight=extralight:slant=roman"  # 200
>    GillSansLight.ttf: "Gill Sans" "Light"
>    $ fc-match "Gill Sans:weight=light:slant=roman"       # 300
>    GillSansLight.ttf: "Gill Sans" "Light"
>    $ fc-match "Gill Sans:weight=book:slant=roman"        # 400/500
>    GillSans.ttf: "Gill Sans" "Regular"
>    $ fc-match "Gill Sans:weight=normal:slant=roman"      # 500
>    GillSans.ttf: "Gill Sans" "Regular"
>    $ fc-match "Gill Sans:weight=demibold:slant=roman"    # 600
>    GillSansBold.ttf: "Gill Sans" "Bold"
>    $ fc-match "Gill Sans:weight=bold:slant=roman"        # 700
>    GillSansBold.ttf: "Gill Sans" "Bold"
>    $ fc-match "Gill Sans:weight=extrabold:slant=roman"   # 800
>    GillSansBold.ttf: "Gill Sans" "Bold"
>    $ fc-match "Gill Sans:weight=black:slant=roman"       # 900
>    GillSansBold.ttf: "Gill Sans" "Bold"
>
> (Fontconfig uses slant instead of font-style and thin...black  
> instead of
> 100...900. We could discuss whether "book" maps to 400 or to 500, but
> for the rest the mapping is straightforward.)
>
>
>
> Bert
> -- 
>  Bert Bos                                ( W 3 C ) http://www.w3.org/
>  http://www.w3.org/people/bos                               W3C/ERCIM
>  bert@w3.org                             2004 Rt des Lucioles / BP 93
>  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
> <tmp.html>
Received on Wednesday, 22 August 2007 20:19:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:52 GMT