Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-777

textLength="" on text with children that form multiple chunks handled incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.7
    • None
    • GVT Text
    • None
    • Operating System: other
      Platform: Other

    Description

      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.

      Attachments

        Activity

          People

            batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
            cam Cameron McCormack
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: