Hiyas when iText creates a Font/BaseFont object, it contains a ton of information, but, as it looks, not the style bits. I create a font like this:
com.lowagie.text.Font font = FontFactory.getFont(fontNameEntry.toString(), BaseFont.WINANSI, BaseFont.NOT_EMBEDDED, Font.UNDEFINED, Font.UNDEFINED, null, false); I pass Font.UNDEFINED to style as I don't know what style it actually is. On Truetype fonts, the bits can be read from the OS/2.fsSelection, on Type1 fonts I think it can be read from "Weight" and "ItalicAngle", on the other font types, I don't know. However.. from what I can see, the font style is actually read in the implementations but ignored. Shouldn't Font.getStyle() return the style of the font and such, Font.isBold(), etc. the specific flags? Best regards, Rog ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ 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 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/