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

Kerning upsets text-align="end"

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            barnaby@echelonl.com Barnaby Shearer

            Dates

              Created:
              Updated:

              Slack

                Issue deployment