Adding Multibyte Character Set Fonts for PDF Printing
From AgileApps Support Wiki
Revision as of 21:47, 4 June 2013 by imported>Aeric (Created page with "Single-byte fonts print properly but, while multibyte display properly on screen, an additional configuration step is needed to make them available to the PDF rendering engine. ...")
Single-byte fonts print properly but, while multibyte display properly on screen, an additional configuration step is needed to make them available to the PDF rendering engine.
To install multibyte fonts:
- Identify the fonts you need.
For example, for any of the East Asian languages like Chinese, Korean, Hindi, or Japanese, you need the following font files:- batang.ttc
- simsun.ttc
- mangal.ttf
- mangalb.ttf
- Locate those files.
- If they are already part of your Linux installation, you should find them at /usr/share/fonts/msttcorefonts/
- If they are not there, you can copy them to that location from a Windows 7 or Windows 8 installation, as they are OS-independent. You can find them in the /Windows/Fonts/ folder.
- As a last resort, download the files from the web, and place them in /usr/share/fonts/msttcorefonts/
- Execute the commands to create that configuration file that the PDF rendering engine needs:
- <syntaxhighlight lang="text" enclose="div">
cd {tomcat_install_dir}/lib java -jar pd4ml.jar -configure.fonts /usr/share/fonts/msttcorefonts/ </syntaxhighlight>
- This step creates the pd4fonts.properties file, which contains a list of fonts.
- Restart Tomcat.
The fonts are now available for use.