xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sunita Kuna <sk...@SAVI.com>
Subject RE: Constructing SVG
Date Tue, 27 Feb 2001 22:51:38 GMT
Thank you Thomas but there is a small hitch that i have out here. As i am
using SVGGraphic2D class to generate the SVG document..i need a know to
apply the same through SVGGraphics2D

-----Original Message-----
From: Thomas E Deweese [mailto:thomas.deweese@kodak.com]
Sent: Tuesday, February 27, 2001 4:35 AM
To: Batik Users
Subject: Constructing SVG

>>>>> "SK" == Sunita Kuna <skuna@savi.com> writes:

SK> I am new to both SVG and Java Graphics 2D programming.  I am
SK> trying generate a SVG document which consists of lines and text.
SK> The text need to be rotated. If i apply rotation all lines and
SK> text added later get effected as the effect is applied over the
SK> complete document. Is there a way in which the font, rotation etc
SK> can be applied to each element specifically....

    Well I'm sure others will probably chime in with better ideas
based on CSS style sheets but here is this one.

    Why not set the rotation and the font on the text item:

<svg ...>
  <path d="...">
  <path d="...">
  <path d="...">

  <!-- Text rotated 90 deg -->
  <text transform="rotate(90)" font-size="24" font-family="Times">
        Hello World

  <!-- Lines NOT rotated 90 deg -->
  <path d="...">
  <path d="...">


    If you have a group of text then you can do this on a <g> element
as well, but be aware that anything in the G will be affected.

To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

View raw message