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

Re: Web Fonts

From: David Hyatt <hyatt@apple.com>
Date: Thu, 24 Aug 2006 16:39:52 -0700
Message-Id: <4089E5F6-BA08-4D21-BCF0-14E1EB046619@apple.com>
Cc: Ian Hickson <ian@hixie.ch>, www-style <www-style@w3.org>
To: "Paul Nelson (ATC)" <paulnel@winse.microsoft.com>

But to answer your question more specifically, yes, I think the name  
of the font would be whatever was used in the font file... I don't  
think we could just make up a name with existing APIs for that font.

dave

On Aug 24, 2006, at 4:37 PM, David Hyatt wrote:

> I think the closest Apple API for this sort of thing is  
> ATSActivateFontFromMemory... and you can activate the font globally  
> or locally (where locally means it's available only to the  
> application).  I think when Safari displays inline PDFs this API is  
> used for any custom fonts included by the PDF, which may mean that  
> Safari supports downloadable fonts right now via the use of an  
> <img> tag with a width/height-0 PDF file. :)
>
> dave
> (hyatt@apple.com)
>
> On Aug 24, 2006, at 2:51 PM, Paul Nelson (ATC) wrote:
>
>>
>>> No more than for the <img> element. Probably significantly fewer
>> concerns,
>>> if we ignore the name altogether... (it's hard to say that you're
>>> confusing the meaning of a trademark if you don't use it at all!)
>>
>> I suppose if one uses AddFontMemResourceEx() on the Windows  
>> platform the
>> handle to the font can be cached.
>>
>> Of course all other GDI functions to CreateFont, etc. will take a
>> logfont structure that needs the facename to access the right font.
>>
>> I believe that some more recent OSes like from Apple allow the  
>> font to
>> be installed from anywhere. However, one cannot assume that an OS  
>> will
>> not need the name of the font to use it. Maybe David can share what
>> Apple does.
>>
>> Paul
>>
>>
>> -----Original Message-----
>> From: www-style-request@w3.org [mailto:www-style-request@w3.org] On
>> Behalf Of Ian Hickson
>> Sent: Friday, August 25, 2006 5:22 AM
>> To: Paul Nelson (ATC)
>> Cc: www-style@w3.org
>> Subject: RE: Web Fonts
>>
>>
>> On Thu, 24 Aug 2006, Paul Nelson (ATC) wrote:
>>>
>>> If one does not use the name in the font, how does one know that the
>>> font is already installed on the machine?
>>
>> It doesn't matter if the font is already installed.
>>
>>
>>> If the same version of the font is already installed why does one  
>>> need
>>
>>> to install it again?
>>
>> If the exact same font is installed, then you can determine that  
>> (just
>> by comparing the fonts, e.g. by comparing the fingerprints of the
>> relevant files -- this can be done quite quickly and can be heavily
>> cached). The name doesn't particularily help this.
>>
>>
>>> How does the OS address using the font if you don't use the name of
>>> the font and call it something else?
>>
>> That's an API issue / implementation issue, independent of the  
>> spec. If
>> the UA really needs a name, it can make one up for internal purposes.
>>
>>
>>> If the font name is trade marked and a person is changing the  
>>> name are
>>
>>> there legal concerns?
>>
>> No more than for the <img> element. Probably significantly fewer
>> concerns,
>> if we ignore the name altogether... (it's hard to say that you're
>> confusing the meaning of a trademark if you don't use it at all!)
>>
>> -- 
>> Ian Hickson               U+1047E                ) 
>> \._.,--....,'``.    fL
>> http://ln.hixie.ch/       U+263A                /,   _.. \   _ 
>> \  ;`._ ,.
>> Things that are impossible just take longer.   `._.-(,_..'-- 
>> (,_..'`-.;.'
>>
>>
>>
>
Received on Thursday, 24 August 2006 23:40:03 GMT

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