Can't upload a font file in PDF Export Language Support
プラットフォームについて: サーバーと Data Center のみ。この記事は、サーバーおよび Data Center プラットフォームのアトラシアン製品にのみ適用されます。
プラットフォームについて: Server、Data Center、および Cloud (状況に応じる) - この記事はアトラシアンのサーバーおよびデータセンター プラットフォーム向けに記載されていますが、Atlassian Cloud のお客様も記事の内容を利用できる可能性があります。この記事で説明されている手順の実施が役立つと考えられる場合、アトラシアン サポートにお問い合わせのうえ、この記事を紹介してください。
問題
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>
atlassian-confluence.log
に次のログが記録される。
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)
原因
The contents of the bandana table, which stores font metadata and the filesystem, which stores the font file itself are out of sync.
ソリューション
- Confluence をシャットダウンします。
次の SQL クエリを実行します。
update bandana set bandanavalue = '<map> <entry> <string>customfont</string> <string></string> </entry> </map>' where bandanakey = 'com.atlassian.confluence.extra.flyingpdf.fontname'
- Delete anything in the {{<confluence_home>/fonts}} folder
- Confluence を再起動します。
This will reset your fonts settings to their absolute defaults and will allow a new font to be added.