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

On Mon, Sep 13, 2010 at 3:02 PM, Sergey Malkin <sergeym@microsoft.com> 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

Received on Monday, 13 September 2010 22:59:13 UTC