xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cameron McCormack <...@mcc.id.au>
Subject Re: newline in text element
Date Tue, 18 Sep 2007 23:43:36 GMT
Jeff Abernathy:
> Actually, I figured it out. If you add tspan child elements to the
> text elements, it does the trick.

When doing that <text><tspan>line1</tspan><tspan>line2</tspan></text>
trick, I find it handy to use dy="" attributes on the <tspan>s with
values in em units, for example:

  <text x="100" y="100">
    <tspan>Line 1.</tspan>
    <tspan x="100" dy="1.2em">Line 2.</tspan>
    <tspan x="100" dy="1.2em">Line 3.</tspan>
    <tspan x="100" dy="1.2em">Line 4.</tspan>

Cameron McCormack, http://mcc.id.au/
	xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au

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

View raw message