Sign In/My Account | View Cart  
advertisement

Article:
 Simple Text Wrapping
Subject: Making this work!!!
Date: 2005-08-07 17:59:34
From: adrianbj
Response to: Making this work!!!

Hi All, Thanks for this script - but for some reason I keep getting a "TypeError: style has no properties" error. I have tried for hours to debug this. Would really appreciate any input on what I need to change.


I get the rest of the output for the document (not included in the code below), but don't see anything at all of the text that is within the <text:wrap>


Thanks,


Adrian


<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN"
"http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd">
<svg a3:scriptImplementation="Adobe" onload="TextWrap._init()" width="670" height="550" xmlns:a3="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/" xmlns:text="http://xmlns.graougraou.com/svg/text/" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg-20000303-stylable" zoomAndPan="magnify">



<defs>
<script type="text/ecmascript" xlink:href="TextWrap.es" a3:scriptImplementation="Adobe"/>
</defs>




<text:wrap x="250" y="25" width="100" style="font-family: arial; font-size: 10px; font-weight: normal; fill: #000000; text-rendering: optimizeLegibility; text-align: justify; line-interval: 1.5em"> High secondary symptoms indicate serious problems, but low primary indicates other factors may also be involved in causing the conditions.</text:wrap>


</svg>


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Titles Only Titles Only Newest First
  • Making this work!!!
    2006-08-20 16:40:13 ErikBorgen [Reply]

    Hi,


    Have just joined the SVG world and got same problem. With some patience I found the reason: The text string is not allowed to start with a space.


Sponsored By: