- From: Thomas Phinney <tphinney@cal.berkeley.edu>
- Date: Mon, 2 Mar 2009 20:20:05 -0800
- To: John Daggett <jdaggett@mozilla.com>
- Cc: Michael Day <mikeday@yeslogic.com>, www-style <www-style@w3.org>
> The current draft requires support for looking up individual faces via
> the fullname with Postscript name look optional for those platforms that
> support it. As Thomas Phinney and others pointed out, the fullname for
> .otf fonts is different across platforms, it's equivalent to the
> Postscript name under Windows but takes the family + style name form
> under Mac OS X (although FontBook actually shows the Postscript name as
> the fullname instead of the fullname in the underlying font data!).
>
>> For example X in the spec:
>>
>> @font-face {
>> font-family: Arial;
>> src: local(Helvetica);
>> }
>>
>> If a document requests "bold italic 12pt Arial" we will check for fonts
>> in the "Arial" font family, and choose the one which is the closest
>> match to the requested properties. This involves using Fontconfig on
>> Linux, and EnumFontFamiliesEx() on Windows, and some ATS / ATSUI
>> functions on MacOS X, but it's all very easy: you put in a family name,
>> you get out some font references, you get more information about those
>> fonts to check their boldness, style, width/stretch, and that's it.
I'm also curious, what field you use to define "family" in this
context? (Some platforms/APIs may consider, say, "Arial Black Italic"
part of the "Arial" family, and others might consider it part of the
"Arial Black" family....)
Cheers,
T
Received on Tuesday, 3 March 2009 04:20:42 UTC