Can't upload a font file in PDF Export Language Support

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

When trying to upload a new font file to Confluence, you get the error: No font file could be found with the name <your_font_name>

(Auto-migrated image: description temporarily unavailable)

The following appears in the atlassian-confluence.log

1 2 3 4 5 6 7 2015-03-10 14:52:12,415 ERROR [http-bio-6800-exec-19] [extra.flyingpdf.config.ConfigurePDFLanguageSupportAction] execute Unable to install language font. -- referer: http://skb.sofer.cn/admin/flyingpdf/configurepdflanguagesupport.action | url: /admin/flyingpdf/doconfigurepdflanguagesupport.action | userName: jacky | action: doconfigurepdflanguagesupport java.io.IOException: No font file could be found with the name msyh.ttf at com.atlassian.confluence.extra.flyingpdf.config.FontsDirectoryFontDao.getFont(FontsDirectoryFontDao.java:25) at com.atlassian.confluence.extra.flyingpdf.config.FontsDirectoryFontDao.removeFont(FontsDirectoryFontDao.java:55) at com.atlassian.confluence.extra.flyingpdf.config.PdfExportFontManager.installFont(PdfExportFontManager.java:84) at com.atlassian.confluence.extra.flyingpdf.config.ConfigurePDFLanguageSupportAction.execute(ConfigurePDFLanguageSupportAction.java:32)

Cause

The contents of the bandana table, which stores font metadata and the filesystem, which stores the font file itself are out of sync.

Resolution

  1. Shutdown Confluence

  2. Run the following SQL query:

    1 2 3 4 5 6 update bandana set bandanavalue = '<map> <entry> <string>customfont</string> <string></string> </entry> </map>' where bandanakey = 'com.atlassian.confluence.extra.flyingpdf.fontname'
  3. Delete anything in the {{<confluence_home>/fonts}} folder

  4. Restart Confluence

This will reset your fonts settings to their absolute defaults and will allow a new font to be added.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.