Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-10048

Only a single style of custom font is supported for PDF export

XMLWordPrintable

      NOTE: This bug report is for Confluence Cloud. Using Confluence Server? See the corresponding bug report.

      A page content that has the following markup (with special characters):

      test ÁRVÍZTŰRŐ
      
      _test ÁRVÍZTŰRŐ_ 
      
      *test ÁRVÍZTŰRŐ* 
      

      Following the steps suggested in the following documentation resolve the character problems when exported to PDF format (installed the verdana.ttf):

      However, the bold and italic fonts does not take effect (see screenshot: result1.pdf). Installing the Verdana Bold instead later, would change all the fonts in bold form when coverting to PDF instead (see screenshot: result2.pdf).
      It appears that the fop.xml only takes up one font at a time even if there are multiple fonts format(see screenshot: result3.jpg) being installed:

      <?xml version="1.0" encoding="UTF-8"?>
      
      <fop>
        <renderers>
          <renderer mime="application/pdf">
            <fonts>
              <font metrics-url="file:/${confluence.home}/fonts/verdanab-metrics.xml" embed-url="file:/${confluence.home}/fonts/verdanab.ttf" kerning="yes">
                <font-triplet name="verdanab" style="normal" weight="normal"/>
                <font-triplet name="verdanab" style="normal" weight="bold"/>
                <font-triplet name="verdanab" style="italic" weight="normal"/>
                <font-triplet name="verdanab" style="italic" weight="bold"/>
              </font>
            </fonts>
          </renderer>
        </renderers>
      </fop>
      

        1. result3.jpg
          result3.jpg
          62 kB
        2. result2.pdf
          16 kB
        3. result1.pdf
          17 kB

              shaffenden Steve Haffenden (Inactive)
              cltham Choy Li Tham [Atlassian]
              Votes:
              17 Vote for this issue
              Watchers:
              23 Start watching this issue

                Created:
                Updated:
                Resolved: