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

PDF Export custom fonts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 8.4.4
    • Old Core - PDF export
    • None
    • Debian, Tomcat, XWiki 8.4.4
    • Unknown

    Description

      I had been unable to use a custom font in xhtml2fo.xsl. This seemed similar to XWIKI-2555 but not with the same error message.

      In my case on a debian server using tomcat, I was getting:

      WARN  o.a.f.a.FOUserAgent            - Font "FreeSerif,normal,400" not found. Substituting with "any,normal,400". 
      WARN  o.a.f.a.FOUserAgent            - Font "Times New Roman,normal,400" not found. Substituting with "any,normal,400".
      

      The issue was fixed by manually adding the full path of WEB-INF/fonts directory in the fonts section of fop-config.xml extracted in WEB-INF/classes

           <fonts>
              <!-- Fonts located in WEB-INF/fonts/ are automatically loaded -->
              <directory>/usr/local/tomcat/webapps/xwiki/WEB-INF/fonts</directory>
      

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              ludovic Ludovic Dubost
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: