The basic problem is that currently the font style attributes are OR'd on. (Bold, italic, underline, etc.) As you know, ORing is a one-way proposition. That is, you can only turn flags on, not off.
The way we solve the problem in http://platypus.pz.org Platypus is to create a new font using the existing typeface and size and with style set to Font.NORMAL. This results in the vanilla font with all style attributes switched off. Then turn on the italics and bold and what not as necessary. (Of course, you could turn on the appropriate attributes in the original font creation call.) It's a small kludge, but it works. Cheers! ---mr. bean pickm wrote: > > Thanks! > > Here is the bug tracker: > http://sourceforge.net/tracker/index.php?func=detail&atid=115255&aid=2561140&group_id=15255 > > > Is there anything I can do to work around this for now? > -- View this message in context: http://www.nabble.com/Problem-with-Chunk-underline-tp21793217p21819264.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php