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

Re: text-ws-02-t and nbsp glyph

From: Cameron McCormack <cam@mcc.id.au>
Date: Mon, 9 Feb 2009 09:57:39 +1100
To: public-svg-wg@w3.org
Message-ID: <20090208225739.GA31370@arc.mcc.id.au>

Erik Dahlström:
> I wonder if the text-ws-02-t.svg[2] test is correct.
> The testcase text-ws-02-t.svg[2] uses the SVGFreeSansASCII font,
> which doesn't have a glyph for the nonbreaking space. This causes a
> fontswitch in Opera, and the second line therefore looks different
> from the first line.

Same in Batik.  The NBSP glyphs are rendered with a different font,
resulting in the spaces between the words being different.

> Should an SVGFont claim to have the nonbreaking-space glyph even
> though it doesn't if there is a space glyph?

No, I don’t believe it should.

> I think the test should either not use nbsp or we need to add the nbsp
> glyph to the SVGFreeSansASCII font.

I agree.  I guess it would be slightly better to keep the use of the
NBSPs and add that glyph to the font, since we don’t want the test to
have a false positive if runs of normal space characters get mistakenly
collapsed when xml:space="preserve", or something.

Cameron McCormack ≝ http://mcc.id.au/
Received on Sunday, 8 February 2009 22:58:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:29:41 UTC