dorairaj wrote: > Would you suggest a better way to handle the font encoding with iText? I > wouldn't be embedding fonts as Unicode that were only used to print ANSI > characters.
No, I'd keep everything as is, because it works well as is. If you do want it to work differently, it's up to you to rewrite the setFont() and drawString() methods in PdfGraphics2D. You'll find out that setFont() (and the private method getCachedBaseFont()) select a font that is independent of the drawString() method. (This is inherent to Java's Graphics2D interface.) What are you going to do? Are you going to change the drawString() method so that it selects another font based on the contents of the String s? I'm not saying that's impossible, it's just that I'm not convinced it's wise to do so. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
