|
Hi, I
am not able to view the text wrapping sample (flowText.svg)
bundled along with the Batik 1.5 Beta. I tried with both Batik SVG Viewer and
ASVG. Both are rendering only the rectangles and not the text. I have pasted
the SVG code below. Any idea ? <?xml version="1.0"
standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!--
====================================================================== --> <!-- Copyright (C) The Apache Software
Foundation. All rights reserved. --> <!--
--> <!-- This software is published under the terms
of the Apache Software --> <!-- License version 1.1, a copy of which has
been included with this --> <!-- distribution in the LICENSE file.
--> <!--
====================================================================== --> <!-- ======================================================================
--> <!-- Tests various text on a path
--> <!--
--> <!-- @author [EMAIL PROTECTED] --> <!-- @version $Id: flowText.svg,v
1.8 2003/02/20 <!--
====================================================================== --> <?xml-stylesheet
type="text/css" href="extension.css" ?> <svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
id="body" width="450" height="500" viewBox="0 0 450
500"> <title>Test of Text
wrapping stuff.</title>
<g id="content" > <text
class="title" x="50%" y="40">Test of Text wrapping
stuff</text>
<!-- Space after size 40 'that' is aci 45 --> <rect
x="17"
y="80" width="200" height="400"
fill="rgb(220,220,255)"/> <rect
x="233" y="80" width="200" height="400"
fill="rgb(220,220,255)"/> <line
x1="27"
y1="70" x2="27" y2="490"
stroke="grey" fill="none"/> <line
x1="207" y1="70" x2="207" y2="490"
stroke="grey" fill="none"/> <line
x1="243" y1="70" x2="243" y2="490"
stroke="grey" fill="none"/> <line
x1="423" y1="70" x2="423" y2="490"
stroke="grey" fill="none"/> <flowText font-size="20" xml:space="preserve"
xmlns="http://xml.apache.org/batik/ext">
<flowRegion> <rect x="17" y="80"
width="200" height="400"/> <rect x="233"
y="80" width="200" height="400"/>
</flowRegion>
<flowDiv> <flowPara
indent="20" bottom-margin="10" >This is an <flowSpan font-size="40"
fill="crimson">ex­ample</flowSpan> of a very long string that is split
‍across multi­ple lines via text
wrap­ping.</flowPara> <flowPara
justification="middle" top-margin="10"
left-margin="10" right-margin="10"
bottom-margin="10"><flowLine>Now
check if text wrapping handles a number of tricky</flowLine>
situations: averylongrunonwordthatspansmultiplelines<flowSpan font-weight="bold">with<flowSpan fill="crimson">embedded</flowSpan>span</flowSpan>elements
& <flowSpan fill="green" dy="-.3em"
font-size="80%">super</flowSpan><flowSpan dy=".3em">
or </flowSpan><flowSpan
fill="darkgreen" dy=".3em"
font-size="80%">sub</flowSpan><flowSpan dy="-.3em">
scripts.</flowSpan></flowPara> <flowPara
top-margin="10" justification="end">Now we are just <flowSpan font-size="30"
fill="blue">about</flowSpan> to go
to the next flow rect <flowSpan
font-size="10">(note if the 'about' were
included on the last line of the previous flow rect the line would not have fit
and the whole line would have moved here).</flowSpan></flowPara> <flowPara
margin="10" justification="full"> I'll keep going
because I want to make sure that it properly stops when it hits the end of all
of the the flow regions defined. Also the last line
includes text in a larger font size so it will not fit. Thus the end of this
sentence will be cut off because the line size gets <flowSpan
font-size="35">tall</flowSpan>er</flowPara>
</flowDiv> </flowText>
</g>
<!-- =============================================================
-->
<!-- Batik sample mark
-->
<!-- =============================================================
-->
<use xlink:href="../batikLogo.svg#Batik_Tag_Box" /> </svg> ********************************************************************** The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. ********************************************************************** |
- RE: flowText not working Prasanna Chetty
- RE: flowText not working Thomas E Deweese
