Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1285

How to write text vertically with svg

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Cannot Reproduce
    • 0.92
    • None
    • renderer/svg
    • None
    • Operating System: Windows XP
      Platform: Other
    • 41299

    Description

      Hello all,

      First I would like to wish you a happy new year!

      It's the first time I'm using this mailing list so I may not have sent my
      question correctly i.e: if you need more information or if I should post my
      question somewhere else, please ask/tell me.

      I'm using FOP 0.20.5 for a project, but I would like to upgrade to FOP 0.92 beta.
      Everything works fine apart form these two points:
      The heap size growing dramatically, but I know the reason of this problem, I
      only use one page-sequence, and I don't think there's a suitable solution for
      it, but that's not the point.
      I need to write some texts vertically and I was creating SVG images in the XSL
      sheet to do this, but it doesn't work any more .
      The code is the following and works fine in FOP 0.20.5, I also tested the SVG
      part separately in an SVG file with and SVG viewer:

      <fo:table-cell border-width="0.5px" border-style="solid" padding-left="3px"
      padding-before="2.5px" padding-after="0.5px">>
      <fo:block font-size="10pt" font-weight="bold">
      <xsl:choose>
      <xsl:when test="@name = 'ID'">
      <fo:instream-foreign-object>

      <svg width="10" height="100" xmlns="http://www.w3.org/2000/svg">
      <g transform="translate(7,96)">
      <g transform="rotate(-90)" font-family="SansSerif">
      <text x="0" y="0">Test Vertical</text>
      </g>
      </g>
      </svg>

      </fo:instream-foreign-object>
      </xsl:when>
      <xsl:otherwise>
      <xsl:value-of select="@value"/>
      </xsl:otherwise>
      </xsl:choose>
      </fo:block>
      </fo:table-cell>

      My configuration:
      Windows XP, Java 5.0, Eclipse 3.2.1, using FOP like a library in a java code.

      So my question is:
      Am I making something wrong, is it a bug, or this feature doesn't have been
      implemented for now and I'll have to wait until then?

      Thank you for your answer.

      Kind regards,

      Miroslav Gregan

      PS I tried to send this mail to fop-dev-faq, fop-users-faq, fop-users-info
      @xmlgraphics.apache.org
      but I always recived the following answer in return:

      Hi! This is the ezmlm program. I'm managing the fop-dev@xmlgraphics.apache.org
      mailing list.

      FAQ - Frequently asked questions of the fop-dev@xmlgraphics.apache.org list.

      None available yet.

      Attachments

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            miroslav.gregan@siemens.com Miroslav Gregan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: