The code is as follow:

         //��������������
            BaseFont bfFan = BaseFont.createFont("MHei-Medium", "UniCNS-UCS2-H",BaseFont.NOT_EMBEDDED);
             //ʹ��
            cb.setFontAndSize(bfFan, 18);
            //���������
            cb.setTextMatrix(150 ,700) ;       
            cb.showText("�C�C�f��") ;
            //�������������
            BaseFont bfHK = BaseFont.createFont("c:\\winnt\\fonts\\hkscsm3u.ttf", BaseFont.IDENTITY_H,                             BaseFont.NOT_EMBEDDED);
            //ʹ��
            cb.setFontAndSize(bfHK, 18);
            //��������
            cb.setTextMatrix(150 ,800) ;//\u3F63\uF3A0
            cb.showText("\u3F63\uF3A0") ;

Now I can output both Traditional Chinese and Specific charaters
of HongKong.

To my strange, I can not output Tranditional Chinese by HK Font!
Best Regards
 
Rick
 
Tel:  +86 20 3765 0936
E-mail: [EMAIL PROTECTED]
China Electronic Information Technology LTD.

Reply via email to