I suggest that you use the CJK fonts present in iTextAsian.jar
Please do go through the tutorial. It should solve most of your problems.
As far as bitmapped fonts are concerned, they are a definite "no-no". They usually have problems in reproducability for different font sizes; you may end up blaming PDF when the problem is with the font. It's not for no reason that Leonard has said they're of poor quality [ I would hardly go against his wisdom].

And again I would recommend going through the part of the tutorial that talks about CJK fonts.
Here is a sample PDF generated by an example in the tutorial:
http://itextdocs.lowagie.com/tutorial/fonts/getting/cjk.pdf


Make sure you have the Adobe CJK fontmap obtained at:
http://www.adobe.com/products/acrobat/acrrasianfontpack.html


An excerpt of interest for you:
If you want to use CJK fonts in iText, you need an extra jar: iTextAsian.jar. If you want to be able to read the text you generated with iText using CJK fonts, you will also need to download and install a special font pack for Acrobat Reader (or maybe your Reader will ask you to install such a font pack upon opening a PDF file with CJK fonts). For the rest, creating a CJK font supported by the iTextAsian.jar is as easy as using any other font:
BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED);
Font FontChinese = new Font(bfChinese, 12, Font.NORMAL);
Paragraph p = new Paragraph(chinese, FontChinese);
document.add(p);
Skip to the direction-section if you want to know how to write vertical text!
Example: java com.lowagie.examples.fonts.getting.ChineseJapaneseKorean
Using CJK Fonts: see cjk.pdf
Extra jars needed in your CLASSPATH: iTextAsian.jar
This is the list of fonts supported in the iTextAsian.jar:
  • Chinese Simplified:
    STSong-Light and STSongStd-Light with the encodings UniGB-UCS2-H and UniGB-UCS2-V
  • Chinese Traditional:
    MHei-Medium, MSung-Light and MSungStd-Light with the encodings UniCNS-UCS2-H and UniCNS-UCS2-V
  • Japanese:
    HeiseiMin-W3, HeiseiKakuGo-W5 and KozMinPro-Regular with the encodings UniJIS-UCS2-H, UniJIS-UCS2-V, UniJIS-UCS2-HW-H and UniJIS-UCS2-HW-V
  • Korean:
    HYGoThic-Medium, HYSMyeongJo-Medium and HYSMyeongJoStd with the encodings UniKS-UCS2-H and UniKS-UCS2-V



Reply via email to