Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-10048

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

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? 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. result1.pdf
          17 kB
        2. result2.pdf
          16 kB
        3. result3.jpg
          result3.jpg
          62 kB

            [CONFSERVER-10048] Only a single style of custom font is supported for PDF export

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2893682 ] New: CONFSERVER Bug Workflow v4 [ 2985831 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2775078 ] New: JAC Bug Workflow v3 [ 2893682 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2734097 ] New: JAC Bug Workflow v2 [ 2775078 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2399504 ] New: JAC Bug Workflow [ 2734097 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2298153 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2399504 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2233160 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2298153 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2194043 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2233160 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1922780 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2194043 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1726664 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1922780 ]
            jonah (Inactive) made changes -
            Description Original: A page content that has the following markup (with special characters):
            {noformat}
            test ÁRVÍZTŰRŐ

            _test ÁRVÍZTŰRŐ_

            *test ÁRVÍZTŰRŐ*
            {noformat}

            Following the steps suggested in the following documentation resolve the character problems when exported to PDF format (installed the verdana.ttf):
            * http://confluence.atlassian.com/display/DOC/Create+PDF+in+another+language

            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:
            {noformat}
            <?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>
            {noformat}






            New: {panel:bgColor=#e7f4fa}
              *NOTE:* This bug report is for *Confluence Server*. Using *Confluence Cloud*? [See the corresponding bug report|http://jira.atlassian.com/browse/CONFCLOUD-10048].
              {panel}

            A page content that has the following markup (with special characters):
            {noformat}
            test ÁRVÍZTŰRŐ

            _test ÁRVÍZTŰRŐ_

            *test ÁRVÍZTŰRŐ*
            {noformat}

            Following the steps suggested in the following documentation resolve the character problems when exported to PDF format (installed the verdana.ttf):
            * http://confluence.atlassian.com/display/DOC/Create+PDF+in+another+language

            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:
            {noformat}
            <?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>
            {noformat}






              shaffenden Steve Haffenden (Inactive)
              cltham Choy Li Tham [Atlassian]
              Affected customers:
              17 This affects my team
              Watchers:
              24 Start watching this issue

                Created:
                Updated:
                Resolved: