W3C home > Mailing lists > Public > www-svg@w3.org > July 2010

Re: letter-spacing with text-anchor middle

From: Erik Dahlstrom <ed@opera.com>
Date: Fri, 09 Jul 2010 10:48:18 +0200
To: www-svg@w3.org
Message-ID: <op.vfkiqpnageuyw5@localhost>
On Thu, 08 Jul 2010 17:34:41 +0200, Tavmjong Bah <tavmjong@free.fr> wrote:

>
> Hi,
>
> 	I would just like to clarify that when using letter-spacing not equal
> to zero, that there should not be space added/subtracted after the last
> character in a line. This may affect the positioning of text when
> text-anchor is set to middle. I note this as Batik 1.7 adds space after
> the last letter and thus centering text does not work as expected.
> (Opera/Firefox do not support letter-spacing. Chrome/Inkscape do not add
> space after the last letter.)
>
> 	I have created a test SVG:
>
> http://tavmjong.free.fr/INKSCAPE/SVG_TESTS/text_letter_spacing_alignment.svg

Opera supports letter-spacing, however the unit (px in this case) must be  
specified if it's in a stylesheet or style attribute. Chrome seems to not  
require the unit to be specified though, which is a bit odd.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed
Received on Friday, 9 July 2010 08:48:54 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:45 GMT