W3C home > Mailing lists > Public > www-style@w3.org > December 2011

RE: [css3-fonts] what is the right font "family-name"?

From: <tao.yu@nokia.com>
Date: Mon, 12 Dec 2011 22:15:04 +0000
To: <jonathan@jfkew.plus.com>
CC: <www-style@w3.org>
Message-ID: <E16DF081AD235D4EA7FF5FE0370F2085AAB7A5@008-AM1MPN1-004.mgdnok.nokia.com>
Thanks Kew!

I tried "Arial Bold" as "family-name" on Chrome, it works ok to display the text in Bold.  Chrome might be flexible to handle this case.  You are right, "Arial Bold" is a face name, not family name.

Thanks for the clarification!

-----Original Message-----
From: ext Jonathan Kew [mailto:jonathan@jfkew.plus.com] 
Sent: Monday, December 12, 2011 4:23 PM
To: Yu Tao (Nokia-MP/Boston)
Cc: www-style@w3.org
Subject: Re: [css3-fonts] what is the right font "family-name"?

On 12 Dec 2011, at 21:10, <tao.yu@nokia.com> <tao.yu@nokia.com> wrote:

> Hi,
> I have a question for "font-family" property.  For some fonts, I don't know what  the right "family-name" should be used in CSS.  For example, font "Arial Bold".  On Win7, it has font name "Arial Fett" ("Fett" is a German word).  If I use "Arial Fett" in the CSS file like (font-family: "Arial Fett";),  it does not work.

In which browser?

According to http://www.w3.org/TR/css3-fonts/#font-family-prop, "Some font formats allow fonts to carry multiple localizations of the family name. User agents must recognize and correctly match all of these names independent of the underlying platform localization, system API used or document encoding."


>  But if I use "Arial Bold" (font-family: "Arial Bold";), then it works ok.

...this shouldn't work anyway. "Arial Bold" is not a font family name, it's a face name. The family is "Arial"; to specify the Bold face in the Arial family, you should use something like "font-family: Arial; font-weight: bold".

>  So my question are: 1) which "family-name" should be used?  2) how do I find out the right "family-name" for a standard .ttf  font (example, timesbd.ttf)?
> Thanks,
> -Tao
Received on Monday, 12 December 2011 22:18:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:08 UTC