W3C home > Mailing lists > Public > www-font@w3.org > October to December 2012

Re: "-ms-font-feature-settings" is ignored if only specified as @font-face descriptor

From: Adam Twardoch (List) <list.adam@twardoch.com>
Date: Mon, 03 Dec 2012 05:21:27 +0100
Message-ID: <50BC28C7.2090604@twardoch.com>
To: www-font <www-font@w3.org>

UPDATE: This problem also affects Chrome, not just IE10!

I have now confirmed that specifying -*-font-feature-settings ONLY in
the descriptor of the @font-face rule works as prescribed in Firefox and
Safari but does NOT work in either Chrome (23 or 25 canary) or Internet
Explorer 10 (Nov 2012 Preview on Windows 7).

Adding the -ms-font-feature-settings as a property of some selector
(e.g. body) fixes the problem in IE, and adding the analogous
-webkit-font-feature-settings declaration as a property of a selector
makes in work in Chrome. But this is not what CSS Fonts 3 postulates. It
should work even if only specified as a descriptor of the @font-face rule.

Updated examples:
http://www.iqfonts.com/121203calttest/index.html
http://www.iqfonts.com/121203calttest/ie10.html

Best,
Adam

On 12-12-03 04:45, Adam Twardoch (List) wrote:
> I have just confirmed this behavior, and built a small example
> illustrating it. 
>
> Both these URLs:
> http://www.iqfonts.com/121203calttest/index.html
> http://www.iqfonts.com/121203calttest/ie10.html
> produce the same results in Safari and Firefox, but the first does not
> produce the desired result in IE10.
>
> Best,
> Adam
>
> On 12-12-03 01:37, Adam Twardoch (List) wrote:
>> Hello list,
>>
>> I may be wrong or may have made a mistake, but I believe I've just found
>> out that Internet Explorer 10 Preview (the Nov 13, 2012 version) running
>> on Windows 7 ignores the OpenType Layout features specified through
>> "-ms-font-feature-settings" if this is ONLY specified as a descriptior
>> in the @font-face rule, as in this example:
>>
>> @font-face {
>>   font-family: 'demofont';
>>   src: url('demofont.eot');
>>   -ms-font-feature-settings: "calt" 1;
>>   font-feature-settings: "calt" 1;
>> }
>>
>> body {
>>   font-family: 'demofont';
>> }
>>
>> The "calt" feature won't work in such a situation on IE 10. It will,
>> however, work fine in this case if I specify the appropriate "-moz" or
>> "-webkit" versions of "font-feature-settings".
>>
>> In IE 10, the "calt" feature will ONLY work if I specify it as a
>> property of a selector, such as here:
>>
>> body {
>>   font-family: 'demofont';
>>   -ms-font-feature-settings: "calt" 1;
>>   font-feature-settings: "calt" 1;
>> }
>>
>> My impression is that the CSS Fonts Module Level 3 spec (
>> http://www.w3.org/TR/css3-fonts ) prescribes that font-feature-settings
>> should work both as a descriptor within the @font-face rule, and as a
>> property for a given selector.
>>
>> Could anyone confirm that the problem indeed exists, and that I'm
>> correct to assume that it's a problem of IE 10?
>>
>> Best,
>> Adam
>>
>


-- 

May success attend your efforts,
-- Adam Twardoch
(Remove "list." from e-mail address to contact me directly.)
Received on Monday, 3 December 2012 04:22:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:01:43 UTC