Bug 43469 - textLength="" on text with children that form multiple chunks handled incorrectly
Summary: textLength="" on text with children that form multiple chunks handled incorre...
Status: NEW
Alias: None
Product: Batik - Now in Jira
Classification: Unclassified
Component: GVT Text (show other bugs)
Version: 1.7
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Batik Developer's Mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-24 19:06 UTC by Cameron McCormack
Modified: 2007-09-24 19:06 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cameron McCormack 2007-09-24 19:06:57 UTC
If textLength="" appears on a text content element whose children form multiple
chunks, the spacing or glyph adjustment is made only to the first chunk and not
spread across all chunks.

Example:

  <svg xmlns='http://www.w3.org/2000/svg' width='400' height='300'
       font-size='14'>
    <line x1='10' y1='130' x2='210' y2='130' stroke='blue'/>
    <line x1='10' y1='135' x2='76' y2='135' stroke='red'/>
    <text x='10' y='150' textLength='200'>
      abc<tspan x='10' y='170'>def</tspan><tspan x='10' y='190'>ghi</tspan>
    </text>
  </svg>

The three lines of text should be stretch approximately along the red line, but
the current behaviour stretches the first line of text along the blue line and
does not stretch the remaining two lines.