Japanese characters rendered with Chinese-style font in PDF export despite custom font configuration

XMLWordPrintable

    • 11
    • Major
    • 88

      Issue Summary

      When exporting Confluence pages to PDF, Japanese characters are not rendered properly, and are rendered with a Chinese-style font.

      Steps to Reproduce

       

      1. Create a page in Confluence Cloud with Japanese text including Kanji that have distinct Japanese vs. Chinese forms, for example:
        編 単 歩 対 差 晩 宮 浄 決 変 帯 臭 圧 別 花 角
      2. Export the page to PDF using ••• → Export to PDF.
      3. Open the generated PDF in Adobe Acrobat Reader / Preview / browser PDF viewer.
      4. Compare the Kanji shapes with a known Japanese font (e.g., IPAex Mincho, IPAex Gothic) and with a Chinese font.

      Expected Results

      1. Japanese text in the PDF is rendered using Japanese glyph variants for Kanji (JIS‑compatible forms).
      2. The font used in PDF is consistent with the configured PDF export font and language (e.g., ja), not a Chinese‑optimized font.

      Actual Results

      Japanese Kanji are rendered using Chinese style font.

      Workaround

      Instead of uploading/installing the font file directly, you can load the font from an external server using the @import rule in the space-level PDF stylesheet settings.

      Steps:

      1. Go to Space Settings > Look and feel > PDF export formatting > PDF stylesheet (space-level setting).
      2. Add an @import rule pointing to the font hosted on a server. For example:

      /* Load the font /@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP');/ Apply the font (required) */body,
      .wiki-content,
      .wiki-content p,
      .wiki-content li,
      .wiki-content td,
      .wiki-content table,
      .wiki-content h1,
      .wiki-content h2,
      .wiki-content h3

      {     font-family: "Noto Sans JP", sans-serif !important; }

             3.Export the space or page to PDF — the imported font should now be applied.

      • This workaround only applies to the space-level PDF custom font setting.
      • It does not work in the Confluence admin-level PDF custom font setting.

              Assignee:
              Unassigned
              Reporter:
              Unassigned
              Votes:
              11 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated: