W3C home > Mailing lists > Public > public-svg-wg@w3.org > April to June 2009

Re: Use of format() clause in @font-face

From: Erik Dahlstrom <ed@opera.com>
Date: Thu, 30 Apr 2009 20:36:38 +0200
To: "Cameron McCormack" <cam@mcc.id.au>, public-svg-wg@w3.org
Message-ID: <op.us7pzcofgeuyw5@blorp.xn--dahlstrm-t4a.net>
On Thu, 30 Apr 2009 04:26:44 +0200, Cameron McCormack <cam@mcc.id.au>  
wrote:

> In the SVG 1.1 test suite, there are two tests (fonts-elem-04-b and
> fonts-elem-07-b) that use an @font-face rule with a ‘src’ descriptor
> that includes a format() clause, like so:
>
>   @font-face {
>     font-family: 'TestComic';
>     font-weight: normal;
>     font-style: normal;
>     src: url("../images/ext-TestComic.svg#Font") format(svg)
>   }
>
> According to CSS 2, inside the format() must be a <string>, which
> therefore needs double or single quotes around it.  css3-fonts follows
> this, and the examples in
> http://dev.w3.org/csswg/css3-fonts/#font-reference use quotes.
>
> Should we correct these?

Yes, that seems appropriate.

> Are there any implementations that do anything
> with format()?

Opera 10 does look at it, if you want something to test with.

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed
Received on Thursday, 30 April 2009 18:37:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 30 April 2009 18:37:53 GMT