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

            Hi All

            Given that the fix for this issue is to provide a different font for rendering PDF's I'm going to close this issue out as a duplicate of CONF-30779. I would urge you to comment and vote on this issue.

            Regards
            Steve Haffenden
            Confluence Bugmaster
            Atlassian

            Steve Haffenden (Inactive) added a comment - Hi All Given that the fix for this issue is to provide a different font for rendering PDF's I'm going to close this issue out as a duplicate of CONF-30779 . I would urge you to comment and vote on this issue. Regards Steve Haffenden Confluence Bugmaster Atlassian

            Is supporting multiple font styles and multiple font faces different from a technical perspective?

            Dmitry Pashkevich added a comment - Is supporting multiple font styles and multiple font faces different from a technical perspective?

            I've created CONF-30779 to request support for multiple font types.

            Dobroslawa Wierzbicka (Inactive) added a comment - I've created CONF-30779 to request support for multiple font types.

            I was told by the support team that:

            There doesn't seem to be a way to use multiple imported fonts in Confluence, as the *.ttc collections can only contain different formats of the same font type. You should be able to add Monospace formatting to your *.ttc file, though.

            So .ttc isn't actually helpful here and there's still no way to add multiple fonts to PDF export.

            Dmitry Pashkevich added a comment - I was told by the support team that: There doesn't seem to be a way to use multiple imported fonts in Confluence, as the *.ttc collections can only contain different formats of the same font type. You should be able to add Monospace formatting to your *.ttc file, though. So .ttc isn't actually helpful here and there's still no way to add multiple fonts to PDF export.

            BenoitP added a comment -

            @Patryk Kotrasiński : which font did you finally end up with? I have tried to bundle the DejaVuSans fonts but failed with FontForge (too many glyffs).
            I am still having issues in rendering greek symbols and other symbols which are proposed by the "insert/symbols" in confluence page edit.

            BenoitP added a comment - @Patryk Kotrasiński : which font did you finally end up with? I have tried to bundle the DejaVuSans fonts but failed with FontForge (too many glyffs). I am still having issues in rendering greek symbols and other symbols which are proposed by the "insert/symbols" in confluence page edit.

            Hi.
            Try Fontforge utility (free).
            It enables you to convert multiple *.ttf (True Type Font) to single *.ttc (True Type Collection) with can contain multiple types of the same font.
            TTC is supported by Confluence - this is how I dealt with this problem.

            Patryk Kotrasiński added a comment - Hi. Try Fontforge utility (free). It enables you to convert multiple *.ttf (True Type Font) to single *.ttc (True Type Collection) with can contain multiple types of the same font. TTC is supported by Confluence - this is how I dealt with this problem.

            Can this fop.xml be edited by hand? Could we upload all variants of a font and change the "name" property in this fop.xml and have it work?

            George Miliotis added a comment - Can this fop.xml be edited by hand? Could we upload all variants of a font and change the "name" property in this fop.xml and have it work?

            Hi Ricky, if you have the appropriate permissions on your instance you should find the setting at -

            <server name>/wiki/admin/flyingpdf/configurepdflanguagesupport.action

            Paul Curren added a comment - Hi Ricky, if you have the appropriate permissions on your instance you should find the setting at - <server name>/wiki/admin/flyingpdf/configurepdflanguagesupport.action

            Ricky Park added a comment -

            Hi, Paul.
            Thanks your comment.

            But I can't find 'PDF Export Language Support' option in ondemand confluence wiki
            Please advise me.

            Cheers,
            Ricky

            Ricky Park added a comment - Hi, Paul. Thanks your comment. But I can't find 'PDF Export Language Support' option in ondemand confluence wiki Please advise me. Cheers, Ricky

            Paul Curren added a comment - Another report of this problem: https://answers.atlassian.com/questions/63504/international-characters-and-pdf-export

              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: