- From: Cameron McCormack <cam@mcc.id.au>
- Date: Thu, 30 Apr 2009 12:26:44 +1000
- To: public-svg-wg@w3.org
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? Are there any implementations that do anything
with format()?
Also, I want to describe the <font-face-format> element in SVG 1.1
Second Edition, since it’s complete undescribed apart from being in the
DTD. There is no description of what goes in the string="" attribute,
so I’m going to specify that it’s what would occur in between the
parentheses of the format() clause, so that you could have something
like:
<font-face-uri xlink:href="DoulosSILR.ttf">
<font-face-format string='"opentype","truetype-aat"'/>
</font-face-uri>
to follow the example in css3-fonts.
Note that there are no tests in the test suite for <font-face-format>,
and I don’t think Batik does anything with it. (It’s just a hint,
anyway, so I guess it would be hard to test.)
Thanks,
Cameron
--
Cameron McCormack ≝ http://mcc.id.au/
Received on Thursday, 30 April 2009 02:27:26 UTC