When generating Foglight reports in PDF format, the Asian characters such as Korean or Chinese are not displaying correctly.
CAUSE:
Currently the JClass component used in rendering PDF reports expects the Korean font name to be "Batang" and "Dotum" with no prefix. Also it only reads the /usr/share/font directory for Fonts.. If the Fonts are a different name or they are installed in a different directory the JClass component used in rendering PDF reports will not display Korean Characters correctly
WORKAROUND:
The following workaround is for Chinese characters.
NOTE: This is specific to Linux, as Windows, by default, contains file required file 'simsun.ttc'.
1. Copy 'simsun.ttc' into the Linux font folder:
/usr/share/fonts/
2. Change the permissions by running the following command:
chmod 644 /usr/share/fonts/simsun.ttc
3. Run the following cmd to install the font:
cd /usr/share/fonts/
sudo mkfontscale
sudo mkfontdir
sudo fc-cache –fv
4. Check if the simsun have been installed by running the following command:
fc-list |grep sim
5. It should show that the font has been installed.
6. Restart FMS
7. To get a list of the fonts currently available for reporting on the server, first generate a report and then visit the following test url:
http://(fmshost):(port)/console/wcf-pdf-fonts.jsp
NOTE: **The output must contain/list 'Simsun'**
8. Test the Report again and confirm if the report now displays the required characters.
STATUS:
Issue fixed in version 5.6.5.7. The latest version of Foglight can be downloaded here.
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center