Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 8.4.4
    • Fix Version/s: None
    • Component/s: Old Core - PDF export
    • Labels:
      None
    • Environment:
      Debian, Tomcat, XWiki 8.4.4
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: