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

Kerning upsets text-align="end"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 0.20.5
    • None
    • renderer/pdf
    • None
    • Operating System: All
      Platform: All
    • 24148

    Description

      I have imported several Type 1 fonts (e.g. Adobe Garamon-book) and fop reads in
      and uses the font Kerning information. However the change in width introduced by
      the kerning is not correctly taken into account for future items in the same
      line of text.

      This is most dramatically demonstrated when you have a table will the first
      coulomb is a list of names (which include different kerning letter pairs)
      followed by a column with text-align="end" (i.e. a spreadsheet with row headings
      then coulombs of right-aligned numbers), the alignment in the second column is
      noticeable wrong.

      You can demonstrate this is caused by the kerning by manually removing the
      kerning information from FOPs xml font file.

      Attachments

        1. example.xml
          2 kB
          Barnaby Shearer

        Activity

          People

            Unassigned Unassigned
            barnaby@echelonl.com Barnaby Shearer
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: