What's the unicode representation (even if a fake one) of the glyph in KAIU.TTF? It's this code that you must use in java, in the format \uxxxx.
Best Regards, Paulo Soares ----- Original Message ----- From: "§õ¾Ë¨|" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 29, 2002 8:54 Subject: [iText-questions] About Embedded Font...................(Help!!) Hi all iText users, I use iText to generate a PDF file,but I have a question. If I create a new Chinese word which its Big-5 is FA40, the unicode didn't define its unicode. I use Java language to code program. When I use JDK1.2.2, the statement System.out.println("") can not print this word. Use JDK1.3.1 to try again, the statement System.out.println("") can print this word successfully. Now these code to generate a PDF file: try{ BaseFont baseFont = BaseFont.createFont("D:\\WINNT\\Fonts\\KAIU.TTF", BaseFont.IDENTITY_H , BaseFont.EMBEDDED); Font ft=new Font(baseFont,18); Document document = new Document(PageSize.A4); PdfWriter writer= PdfWriter.getInstance(document,new FileOutputStream("F:\\1.pdf")); document.open(); Chunk chunk=new Chunk("*",ft); // if *=new Chinese word(FA40) Phrase phrase=new Phrase(chunk); document.add(phrase); document.close(); } catch(DocumentException de) {} the result of this PDF was failed to write it into PDF file. What is PDF? PDF is Portable Document Format to mean portable document. When I use PDF Generator, I can generate * into PDF successfully. The "Embedded Font" should be the main problem. Who can tell me how to solve it(*=new Chinese word(FA40)?????? Thanks to everyone, have a nice day. myEmail: [EMAIL PROTECTED] _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions