http://24ways.org/2011/creating-custom-font-stacks-with-unicode-range/
I found an article about the unicode-range
for the @font-face
rule and that firefox doesn't support the unicode-range
property. But the author found a workaround, which I don't understand.
I don't understand how it should work. The second (fallback) rule use the unicode-range
, too. So why it should solve the problem to apply the arial font to to all font characters?
And why in the first version (wihout the unicode-range
in the fallback rule) it should work. I expect that the second rule would be apply every time to all browsers?
We can make use of the rules of the CSS cascade to make sure that if
unicode-range
isn’t supported we get a sensible fallback font. What would be ideal is if we were able to follow up the@font-face
rule with a second rule to override it if Unicode ranges aren’t implemented.
@font-face {
font-family: 'Ampersand';
src: local('Baskerville'), local('Palatino'), local('Book Antiqua');
unicode-range: U+26;
}
@font-face {
/* Ampersand fallback font */
font-family: 'Ampersand';
src: local('Arial');
unicode-range: U+270C;
}