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

Chinese (Traditional) fonts do not display in the viewppt macro

    • Icon: Bug Bug
    • Resolution: Support Request
    • Icon: Low Low
    • None
    • 3.2.1, 3.3, 3.4-m1
    • None

      Using the viewppt macro, the font DFKai-SB won't display. It displays fine using the viewpdf macro.

      We have double-checked that the font is installed on the server (kaiu.ttf), it is used correctly for the viewpdf macro, xpdf, OpenOffice.

        1. ppt_broke.jpg
          ppt_broke.jpg
          54 kB
        2. ppt_stillbroke.jpg
          ppt_stillbroke.jpg
          49 kB
        3. TESTFONTS.ppt
          124 kB
        4. testfonts-ppt-viewppt-screenshot.png
          testfonts-ppt-viewppt-screenshot.png
          68 kB
        5. workaround.jpg
          workaround.jpg
          264 kB

            [CONFSERVER-20461] Chinese (Traditional) fonts do not display in the viewppt macro

            Hi Irving,

            To assist you with the issue I have created a support ticket.

            You should receive a notification on it.

            Cheers,

            Roy Hartono

            Roy Hartono [Atlassian] added a comment - Hi Irving, To assist you with the issue I have created a support ticket. You should receive a notification on it. Cheers, Roy Hartono

            Alex Leung added a comment -

            A workaround is discovered. You just have to ensure both the "English font" and the "Chinese font" are set to 標楷體. Then viewfile will then correctly display the ppt. It seems the root cause of the bug is that viewfile is trying to use "Times New Roman" (the English font) to render the Chinese characters.

            Alex Leung added a comment - A workaround is discovered. You just have to ensure both the "English font" and the "Chinese font" are set to 標楷體. Then viewfile will then correctly display the ppt. It seems the root cause of the bug is that viewfile is trying to use "Times New Roman" (the English font) to render the Chinese characters.

            Ryan,

            I'm 100% sure that the font (kaiu.ttf) is installed because I did follow the instructions in that confluence page

            Here are the fonts.dir entries:

            kaiu.ttf dynalab-dfkai sb-medium-r-normal-0-0-0-0-c-0-ascii-0
            kaiu.ttf dynalab-dfkai sb-medium-r-normal-0-0-0-0-c-0-cns11643-1
            kaiu.ttf dynalab-dfkai sb-medium-r-normal-0-0-0-0-c-0-cns11643-2
            kaiu.ttf dynalab-dfkai sb-medium-r-normal-0-0-0-0-c-0-cns11643-3
            kaiu.ttf dynalab-dfkai sb-medium-r-normal-0-0-0-0-c-0-iso10646-1
            kaiu.ttf dynalab-dfkai sb-medium-r-normal-0-0-0-0-c-0-iso8859-1
            kaiu.ttf dynalab-dfkai sb-medium-r-normal-0-0-0-0-c-0-jisx0201.1976-0

            OpenOffice (on the same server) can recognize and use that font. It is only viewppt that isn't recognizing it.

            For reference, kaiu.ttf (DFKai-SB) and MingLiu are the default fonts for Windows users in Taiwan (Chinese Traditional).

            irvingpop2 added a comment - Ryan, I'm 100% sure that the font (kaiu.ttf) is installed because I did follow the instructions in that confluence page Here are the fonts.dir entries: kaiu.ttf dynalab-dfkai sb-medium-r-normal -0-0-0-0-c-0-ascii-0 kaiu.ttf dynalab-dfkai sb-medium-r-normal -0-0-0-0-c-0-cns11643-1 kaiu.ttf dynalab-dfkai sb-medium-r-normal -0-0-0-0-c-0-cns11643-2 kaiu.ttf dynalab-dfkai sb-medium-r-normal -0-0-0-0-c-0-cns11643-3 kaiu.ttf dynalab-dfkai sb-medium-r-normal -0-0-0-0-c-0-iso10646-1 kaiu.ttf dynalab-dfkai sb-medium-r-normal -0-0-0-0-c-0-iso8859-1 kaiu.ttf dynalab-dfkai sb-medium-r-normal -0-0-0-0-c-0-jisx0201.1976-0 OpenOffice (on the same server) can recognize and use that font. It is only viewppt that isn't recognizing it. For reference, kaiu.ttf (DFKai-SB) and MingLiu are the default fonts for Windows users in Taiwan (Chinese Traditional).

            RyanA added a comment -

            Irving, it sounds like the font isn't installed.

            See this page for instruction on installing fonts. I've personally tested doing it this way and it was the only way for me to get it to work reliably. Can you try this and verify that it doesn't work?

            http://confluence.atlassian.com/display/CONFKB/The+text+in+a+PowerPoint,+Excel+or+Word+document+looks+different+when+using+the+viewfile+macro

            RyanA added a comment - Irving, it sounds like the font isn't installed. See this page for instruction on installing fonts. I've personally tested doing it this way and it was the only way for me to get it to work reliably. Can you try this and verify that it doesn't work? http://confluence.atlassian.com/display/CONFKB/The+text+in+a+PowerPoint,+Excel+or+Word+document+looks+different+when+using+the+viewfile+macro

            I was able to reproduce this on another Linux Ubuntu system. On an instance running in either Mac or Windows, the fonts display normally. The ppt_broke screen is from an instance running on a vanilla instance with no fonts installed. After installing Mincho, Simsun, Gulim, MingLiu and DFKai-SB, ppt_stillbroke shows that tte DFKai-SB isn't being recognized.

            My test system has the following specs:

            System Information

            favouriteColour: Heliotrope
            javaRuntime: Java(TM) SE Runtime Environment
            operatingSystem: Linux 2.6.24-27-server (Ubuntu 4.2.4)
            jvmVersion: 1.0
            fileSystemEncoding: UTF-8
            javaVm: Java HotSpot(TM) 64-Bit Server VM
            javaVendor: Sun Microsystems Inc.
            jvmImplementationVersion: 16.3-b01
            systemTimezone: America/Los_Angeles
            appServer: Apache Tomcat

            Fonts directory contents after fc-cache:

            $ ls /usr/share/fonts/truetype/
            gulim.ttc  kaiu.ttf  mingliu.ttc  MS Mincho.ttf  msttcorefonts  simkai.ttf  simsun.ttc

            Adam Laskowski (Inactive) added a comment - - edited I was able to reproduce this on another Linux Ubuntu system. On an instance running in either Mac or Windows, the fonts display normally. The ppt_broke screen is from an instance running on a vanilla instance with no fonts installed. After installing Mincho, Simsun, Gulim, MingLiu and DFKai-SB, ppt_stillbroke shows that tte DFKai-SB isn't being recognized. My test system has the following specs: System Information favouriteColour: Heliotrope javaRuntime: Java(TM) SE Runtime Environment operatingSystem: Linux 2.6.24-27-server (Ubuntu 4.2.4) jvmVersion: 1.0 fileSystemEncoding: UTF-8 javaVm: Java HotSpot(TM) 64-Bit Server VM javaVendor: Sun Microsystems Inc. jvmImplementationVersion: 16.3-b01 systemTimezone: America/Los_Angeles appServer: Apache Tomcat Fonts directory contents after fc-cache: $ ls /usr/share/fonts/truetype/ gulim.ttc kaiu.ttf mingliu.ttc MS Mincho.ttf msttcorefonts simkai.ttf simsun.ttc

              rhartono Roy Hartono [Atlassian]
              8f3658cfe81a irvingpop2
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: