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

SVG text is not rendered if opacity is set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.5, 2.1
    • None
    • image/svg
    • None

    Description

      When opacity is set, FOP renders an off screen image and include that into the PDF. The problem is that org.apache.fop.svg.font.FOPGVTGlyphVector.draw() method does nothing.

      I am trying to create a patch but I could not figure out how to get the proper glyph outline shapes. I was only able to get the glyph bounding box. If someone can point me in the right direction, that would be great.

      Attachments

        1. test-with-opacity.svg
          0.4 kB
          Eric Lim
        2. test-wip.pdf
          28 kB
          Eric Lim
        3. test-no-opacity.svg
          0.4 kB
          Eric Lim
        4. test.pdf
          16 kB
          Eric Lim
        5. test.fo
          2 kB
          Eric Lim
        6. svg-text-opacity-wip.patch
          2 kB
          Eric Lim

        Issue Links

          Activity

            People

              Unassigned Unassigned
              esclim Eric Lim
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: