Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2555

PDF Export fonts are not picked up from WEB-INF/fonts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0 M2
    • 1.5 RC1, 1.6.1
    • Other
    • None
    • Tomcat 6.0.13
      Linux 2.6.18.8-0.10-default
      java version "1.6.0_06"
      XWiki deployed as WAR file (exploded)
    • pdf

    Description

      UTF-8 characters are exported as ? characters ( HTML works fine)

      The following warning is found in the logs

      WARN  impl.PdfExportImpl              - Starting with 1.5, XWiki uses the W
      EB-INF/fonts/ directory as the font directory, and it should contain the FreeFont (http://sava
      nnah.gnu.org/projects/freefont/) fonts. FOP cannot access this directory. If this is an upgrad
      e from a previous version, make sure you also copy the WEB-INF/fonts directory from the new di
      stribution package.
      

      The war file originates from 1.5RC1 so the WEB-INF/fonts directory is there

      AUTHORS
      COPYING
      CREDITS
      FreeMonoBoldOblique.ttf
      FreeMonoBold.ttf
      FreeMonoOblique.ttf
      FreeMono.ttf
      FreeSansBoldOblique.ttf
      FreeSansBold.ttf
      FreeSansOblique.ttf
      FreeSans.ttf
      FreeSerifBoldItalic.ttf
      FreeSerifBold.ttf
      FreeSerifItalic.ttf
      FreeSerif.ttf
      

      Obviously the user running tomcat has access to that directory.

      Following this warning I have quite a few errors similar to

      ERROR autodetect.FontInfoFinder       - Unable to load font file: file:/usr/share/fonts/URW/p052024l.pfb. Reason: No PFM file was found for file:/usr/share/fonts/URW/p052024l.pfb
      

      Attachments

        Issue Links

          Activity

            People

              sdumitriu Sergiu Dumitriu
              rombert Robert Munteanu
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: