On 4/10/06, tsr <[EMAIL PROTECTED]> wrote:
>
> Ok, attaching a sample document.
>
> What I want is for the square with the text 'moon' to stay like it is
> but the text in it ('moon', duh) should be rotated 90 degrees
> counter-clockwise. So that the whole thing looks like the squares with
> 'star' and 'sun' in them but rotated 90 degrees counter-clockwise.
>
> As mentioned before, neither inkscape 0.42, firefox 1.5 or sodipodi
> 0.34-0.1 or GLIPSGrafitti1.4 manages to render the thing correctly (or
> as I would expect) on ubuntu 5.11
>
> When I try to accomplish the same thing in the programs mentioned they
> all use a transform matrix instead, but frankly I don't understand that
> one at all. If you could point me to somewhere where I could have it
> explained in a easier way than at
> http://www.w3.org/TR/SVG11/coords.html#EstablishingANewUserSpace maybe
> that'll be the way to go.transform matrix is a "short cut not notation of the combination" of: ScaleX,ScaleY,SkewX,SkewY, Rotate and Translate. You don't have to use it. Using the individual one would be a good starting point. Hope it help. /Tomas > > mån 2006-04-10 klockan 17:27 +0000 skrev syraq: > > --- In [email protected], "Tomas Sanchez Romani" > > <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > > > > You can add the x and y offset in the rotation; > > > > <text x="477" y="188" > > transform="rotate(-45 > > > 477 188)">Hello world</text> > > > > > > I've tried that, but it doesn't do the trick. Only the first > > character get's > > > rotated the correct angle, the other 2 characters get rotated evenly > > on the > > > 360 degrees. > > > > > > I'm using millimeters as the unit (since I'm doing a document that's > > > supposed to get printed on an A4-psper) > > > > > > Could this mess things up? If so, how could I transform mm to px > > (without > > > knowing beforehand the dpi of the users screen?) > > > > > > > Not that I know of but then again, I have never used mm as a unit in > > an SVG. Can you post an example code so we can have a look? > > > > > > > > > > As you see, the rotation attribute accepts angle and x- and > > > > y-translation. You just need to know where you put the text in your > > > > coordinate system. > > > > > > I've even tried using the transform="translate(x, y) rotate(angle) > > > traanslate(-x, -y)" notation that I saw is the equivalent of > > > transform="rotate(angle, cx, cy)" over at the spec at w3.org > > > > > > /Tomas > > > > --- In [email protected], "Tomas Sanchez > > Romani" > > > > tsr.offentlig@ wrote: > > > > > > > > > > Hi, > > > > > > > > > > I'm trying to rotate a text in a svg-image and can't get it > > right. > > > > > > > > > > Either I get the text rotated from the document X=0 and Y=0 > > point or > > > > I get > > > > > (by adding the cx and cy vars to the transform attribute) the > > first > > > > > character rotated my wanted angle and the rest some to my > random > > > angle. > > > > > > > > > > What I want to accomplish seems to me (a noob) quite easy and > > > straight > > > > > forward, but I just can't get it to happen. Help please. > > > > > > > > > > I'm using straight svg (from text-files, generated from php), > > > > inkscape and > > > > > sodipodi (on ubuntu breezy badger 5.11). > > > > > > > > > > /Tomas > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- > > > > To unsubscribe send a message to: > > > [EMAIL PROTECTED] > > > > -or- > > > > visit http://groups.yahoo.com/group/svg-developers and click > > "edit my > > > membership" > > > > ---- > > > > Yahoo! Groups Links > > > > > > > > <*> To visit your group on the web, go to: > > > > http://groups.yahoo.com/group/svg-developers/ > > > > > > > > <*> To unsubscribe from this group, send an email to: > > > > [EMAIL PROTECTED] > > > > > > > > <*> Your use of Yahoo! Groups is subject to: > > > > http://docs.yahoo.com/info/terms/ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- > > To unsubscribe send a message to: > [EMAIL PROTECTED] > > -or- > > visit http://groups.yahoo.com/group/svg-developers and click "edit my > membership" > > ---- > > Yahoo! Groups Links > > > > > > > > > > > > > [Non-text portions of this message have been removed] > > > > ----- > To unsubscribe send a message to: > [EMAIL PROTECTED] > -or- > visit http://groups.yahoo.com/group/svg-developers and click "edit my > membership" > ---- > Yahoo! Groups Links > > > > > > > > [Non-text portions of this message have been removed] ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

