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

[PATCH] Nested baseline-shift are not additive

    Details

      Description

      According to the spec (http://www.w3.org/TR/SVG11/text.html#BaselineShiftProperty),
      baseline-shift properties can nest and are additive but not inheritable.

      the following example is expected to render text on the same line though the tspan is back on the baseline:

      <text baseline-shift="10pt">the quick <tspan fill="brown">brown</tspan> fox</text>

      the following example is expected to render the tspan within another tspan higher up compared to the baseline:

      <text> using <tspan baseline-shift="super">super <tspan baseline-shift="5pt">super!</tspan> script</tspan></text>

      Attached are testcases for the baseline-shift property

        Attachments

        1. baseline-shift.diff
          6 kB
          Nicolas Socheleau
        2. baseline-shift.diff
          6 kB
          Nicolas Socheleau
        3. baseline-shift.diff3
          6 kB
          Nicolas Socheleau
        4. baseline-shift.svg
          1 kB
          Nicolas Socheleau
        5. baseline-shift-animate.svg
          2 kB
          Nicolas Socheleau
        6. baseline-shift-script.svg
          2 kB
          Nicolas Socheleau
        7. textLayout3.svg
          4 kB
          Nicolas Socheleau

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              nicolas.socheleau@quickoffice.com Nicolas Socheleau
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: