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

Using text-align-last="justify" to align page number of Table of Contents: alignment of page is not shifted correctly always

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Duplicate
    • 1.0
    • None
    • renderer/pdf
    • None
    • Operating System: Windows Server 2003
      Platform: PC
    • 51594

    Description

      Using text-align-last="justify" and leader-pattern to align the page number of Table of Contents:
      the alignment of the page is shifted too much/not enough if the document name contains blanks followed by a slash, e.g. "m / / / / / / / / / / / / kk" as document name.
      Dependent on how many " /" character pairs are part of the document name, the page number displayed is shifted too much to the right or to the left, the pages are not displayed one underneath the other.
      e.g.
      3.3.2. m / / / / / / / / / / / / kk..................................45
      3.3.3. m / / / / / / / / / / / / / / / / /kk..........................46

      The fo statement used is:
      <fo:block space-after="2mm" hyphenate="true" wrap-option="wrap" text-align-last="justify">m / / / / / / / / / / / / kk<fo:leader leader-pattern="dots" /> 45</fo:block>

      Please see attached fop renderer input xml and pdf output file as example and for details of the problem.

      The problem is dependent on the font, it is with Arial, using MS Gothic is even worse.

      We use fop 0.94, but I tried 1.0 too - same result.

      The bug could be related to #36238
      --> blanks in the document name, but I tried Courier too and it doesn't work either.

      #43739 seems to have a similar problem

      Attachments

        1. FopRendererInput2.xml
          9 kB
          Christine Ludszuweit
        2. testToCMSGothic.pdf
          12 kB
          Christine Ludszuweit

        Issue Links

          Activity

            People

              fop-dev@xmlgraphics.apache.org fop-dev
              ludszuweit@extedo.com Christine Ludszuweit
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: