Re: [css3-fonts] @font-face matching and font-style descriptor

"Tab Atkins Jr." <[email protected]>
Newsgroups gmane.comp.web.fonts,gmane.comp.web.css.general
Message-ID <[email protected]>
On Mon, Sep 13, 2010 at 3:02 PM, Sergey Malkin <[email protected]> wrote:
>> Actually, the spec is pretty clear I think:
>> (1) local(xxx) references a *single* face with a *fullname*
>>    of "xxx" [Section 4.3]
>> (2) style descriptors are used for font matching *not* the underlying
>>     style data in the font [Section 4.4]
>>
>> IE9 currently looks for a *family* name of "xxx", which is wrong, it
>> should be looking for the *fullname*.  The fullname identifies a
>> single face uniquely.
>
> Yes, this makes sense. Full name matching should happen first and no artificial slanting should happen (I this test case).
>
> One more clarification is needed, though, regarding use of artificial styles. In case where font-style descriptor is not specified, spec says "default values are assumed". What is default value? Is this equivalent to specified "font-style:normal"?

It should probably say "initial value", which is defined for every property.


> Consider following example:
>
> @font-face {
>  font-family: MyFont1;
>  src: local(Arial);
> }
>
> @font-face {
>  font-family: MyFont2;
>  src: local(Arial);
>  font-style:normal;
> }
>
> Will following two lines be rendered identically? They will both use regular Arial face. But will each of them be allowed to use generated oblique font?

Yes, they will be identical in every way.

~TJ
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.