Your note does all the difference. Font is a high level class and not all the attributes work when applied directly to PdfContentByte. When you get the BaseFont that's just one of the attributes. If you need all the Font functionality in PdfContentByte then a ColumnText is required.
Best Regards, Paulo Soares ----- Original Message ----- From: "David Thielen" <[EMAIL PROTECTED]> To: "itext" <[EMAIL PROTECTED]> Sent: Sunday, March 30, 2003 0:17 Subject: [iText-questions] FontFactory.getFont() ignores underline & strikethrough > Hi; > > I have the following code: > > int style = 0; > if (chr.isBold()) > style |= Font.BOLD; > if (chr.isItalic()) > style |= Font.ITALIC; > if (chr.getUnderline() != RtfElementChar.UNDER_NONE) > style |= Font.UNDERLINE; > if (chr.getStrikeThrough() != RtfElementChar.STRIKE_NONE) > style |= Font.STRIKETHRU; > > It does fine setting the font to bold and italic when appropiate. But > when set to underline and/or strikethru - it ignores it. One note, from > the returned font I do a getBaseFont() and pass that to > PdfContentByte.showTextAligned(). > > thanks - dave > ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
