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

[PATCH] SVG text containing certain glyphs isn't rendered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3, 2.4, 2.6
    • 2.9
    • foreign/svg
    • None

    Description

      When rendering an XSL-FO containing an inline SVG with a custom font (Century Gothic), text is only displayed if it doesn't contain the "o" character inside a word. 

      The provided "test.xml" file includes a minimal SVG image that shows this behavior. Everything works correctly from FOP 1.x - 2.2. But starting with FOP 2.3, some text lines might be omitted from the output. Typically lines containing an "o" glyph inside a word. Might also be triggered by other glyphs, as I haven't tested exhaustively with whole alphabet.

      The attached "output-fop2.2.pdf" shows a correct rendering, whereas the "output-fop2.3.pdf" shows rendering in 2.3, 2.4 and 2.6.

      Disclaimer: This may actually be a bug in Apache Batik (1.10 and up), but I'm currently unable to reproduce it using their command-line rasterizer tool.

      Attachments

        1. test.xml
          2 kB
          Per Cederberg
        2. p4.patch
          7 kB
          Dave Roxburgh
        3. output-fop2.3.pdf
          7 kB
          Per Cederberg
        4. output-fop2.2.pdf
          8 kB
          Per Cederberg
        5. fopconfig.xml
          0.4 kB
          Per Cederberg
        6. CenturyGothicStd.otf
          29 kB
          Per Cederberg

        Issue Links

          Activity

            People

              ssteiner Simon Steiner
              per.cederberg Per Cederberg
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: