W3C home > Mailing lists > Public > www-style@w3.org > March 2009

Re: [css3-fonts] font descriptor default values

From: Adam Twardoch <list.adam@twardoch.com>
Date: Wed, 04 Mar 2009 10:35:06 +0100
Message-ID: <49AE4B4A.7070208@twardoch.com>
To: Michael Jansson <mjan@em2-solutions.com>
CC: Thomas Phinney <tphinney@cal.berkeley.edu>, Michael Day <mikeday@yeslogic.com>, John Daggett <jdaggett@mozilla.com>, www-style <www-style@w3.org>, HÃ¥kon Wium Lie <howcome@opera.com>
> Thomas Phinney wrote:
>> In OpenType and TrueType, there are a variety of name fields
>> available, and font developers can express the "real" family grouping
>> just fine alongside the GDI-friendly one. But that's not what gets
>> shown to GDI apps, including browsers AFAIK. Mac OS doesn't have these
>> restrictions, but as long as any major OS API does, there's an issue.

This discussion of course mostly applies to "client fonts" i.e. fonts
installed on the user's client. Fortunately enough, the web fonts
mechanism provides a complete abstraction from the actual font naming
contained in the fonts, which I think it quite wonderful. I'd like to
remind everyone that with "server fonts" aka "web fonts", CSS provides,
essentially, a font _installation_ system that sets up a completely new
naming scheme independent of the font naming contained in the font
files. For example:

@font-face {
font-family: "Twardoch Body";
font-weight: normal;
src: url("http://www.twardoch.com/fonts/garamond.ttf")
}

@font-face {
font-family: "Twardoch Body";
font-weight: bold;
src: url("http://www.twardoch.com/fonts/arialblack.ttf")
}

body {
font-family: "Twardoch Body";
}

<html><body>
<p>This is Garamond and <strong>this is Arial Black</strong>.</p>
</body></html>

Which seems to at least partially solve the problem, no?

BTW, I just looked at a test page I made and it seems that Safari
supports both http:// and file:// URL links to web fonts while Firefox
does not support file:// at all.

Adam

-- 

Adam Twardoch
| Language Typography Unicode Fonts OpenType
| twardoch.com | silesian.com | fontlab.net

I hate to advocate drugs, alcohol, violence, or
insanity to anyone, but they've always worked for me.
(Hunter S. Thompson)
Received on Wednesday, 4 March 2009 09:36:18 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:17 GMT