The installation of a new font is going to be demonstrated in the following.
Enjoy and Relax! Hope this will help the beginners. Actually, I am also a newbie. =]
- Go to C drive >> Window >> Fonts >> Copy the font (i.e. .ttf file under C:\WINDOWS\Fonts) you want to iReport Installed Path (\iReport-4.7.1\ireport\fonts)
- Open iReport Designer >> Select Tools >> Option
- Select "Fonts" tab and click "Install Font" button
- Click "Browse" button and select the corresponding .ttf file. Click "Next" button
- Select PDF Encoding
Note: If there is an exception thrown (e.g. "Unsupported Encoding Exception: UniCNS-UCS2-H", "Identity-H" (UTF8) should be used for PDF Encoding. It is because Java doesn't know UniCNS-UCS2-H encoding but UTF8 Encodeing.
- After installation, you can check the irfonts.xml file under (\iReport-4.7.1\ireport\fonts). You can find that the Font Family inserted.
- Export the newly installed font as jar file and place the jar in both your project classpath and server lib folder.