Re: SVG and text
"Lars Eirik Rønning"
Tue, 9 Sep 2008 12:40:37 +0200
I will have a look at this, but is it ok if i send a file to your email directly?
On Tue, Sep 9, 2008 at 12:36 PM, <thomas.deweese@xxxxxxxxx>
> I experience difficulties
when trying to position text correctly in
> svg. My case is this
: I have a placeholdere which have width and
> height and is added as a
symbol in svg (from illustrator)
> This placeholder will be
replaced with text.
> Sometimes several lines
of text are added and i use the <tspan tag> to
> do this. My issue
is that the text does not appear although i have
> merely replaced the elements
within the symbol to be text nodes and
> not as before rectangle.
It seems that it starts from the bottom and
> not from the top (is this
> Is there some easy way to
work with multiline text or text in general?
> In my case I have to manipulate
the matrix (1 0 0 1 tx ty) to have
> this sucessfully display
the text. If the text is singleline however
> my matrix becomes (1 0 0
-1 tx ty)..
like someone is doing something funny with the
coordinate system. Without
an example document to look at I don't
know how much help I can give.
In particular with just your example
matrix above (1 0 0 -1 tx ty)
your text should come out upside down.
someone had a similar vertical flip matrix outside of
yours you would see that increasing
y would move 'up' the page.
Normally Illustrator doesn't
do this but it's possible that in some cases
(like symbols) it does add such
a transform (Illustrator uses a
standard Cartesian coordinate
system Y is up, SVG uses a 'computer
graphics' coordinate system Y