Re: letter-spacing with text-anchor middle

On Fri, 2010-07-09 at 10:48 +0200, Erik Dahlstrom wrote:
> On Thu, 08 Jul 2010 17:34:41 +0200, Tavmjong Bah <> 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:
> >
> >
> 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

Meant to send this to the list...

Ah, so this is an error with Inkscape created SVG's. I've added px to
the letter-spacing attribute and uploaded the new file. Opera now shows
the same behavior as Batik, i.e. the space is added after the last
letter. Batik also does not require the unit to be specified.


Received on Friday, 9 July 2010 11:14:18 UTC