W3C home > Mailing lists > Public > www-style@w3.org > June 2009

Re: @font-face and unicode-range

From: Michael Day <mikeday@yeslogic.com>
Date: Wed, 03 Jun 2009 15:34:12 +1000
Message-ID: <4A260B54.9010501@yeslogic.com>
To: Michel SUIGNARD <Michel@suignard.com>
CC: John Daggett <jdaggett@mozilla.com>, www-style@w3.org
Hi Michel,

> The problem though occurs with the Inherited and Common sets, although
> they are required for many writing systems, you would not expect a font
> to contain all of them. In fact you would only expect a subset required
> to support the other scripts specified by a given font.

I was thinking to apply this after resolving inherited and common 
scripts, so that it is not necessary to declare them explicitly with the 
unicode-range descriptor. For example:

@font-face {
     font-family: MyChineseFont;
     src: local("AR PL KaitiM GB");
     unicode-range: Han
}

<span style="font-family: MyChineseFont">foo "太好了!" bar</span>

In this case the punctuation around the Chinese text would use the 
Chinese font, while the Latin text would fall back to another font.

This would seem to make it easier to support a script plus related 
common characters, and additional Unicode ranges can also be specified 
if a particular font requires it.

Best regards,

Michael

-- 
Print XML with Prince!
http://www.princexml.com
Received on Wednesday, 3 June 2009 05:34:53 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:18 GMT