Hi everyone, I have same problem when I try to wrtite underlined text on template. I set font style (ttf font like new Courier) as underline but on pdf result the text is normal. is it a itext bug ? or I wrong to write my code. I need to write underlined text only on PdfTemplate below you can see what I do.. Font font = oPostelFonts.getFont("Courier New",fFontSize, fontStyle); BaseFont bf = font.getBaseFont(); oPdfTemplate.beginText(); oPdfTemplate.setFontAndSize(bf,fFontSize); oPdfTemplate.setTextRise(this.fRiseText); oPdfTemplate.showTextAligned(fontAlign, sText, fPosX, fPosY, 0); oPdfTemplate.endText(); where: oPdfTemplate is a template; oPostelFonts.getFont is FontFactory.getFont(sFontAlias,fFontSize, iFontStyle);
Best regards,
Andrea Francop.s. I use itext0.96..
--
signature
Andrea Franco
Arsretia S.r.l.
Via D. Sansotta, 97
00144 Roma (IT)
e-mail: [EMAIL PROTECTED]
Tel.: +39 06 52 27 00 97
Fax : +39 06 52 27 23 13
Arsretia S.r.l.
Via D. Sansotta, 97
00144 Roma (IT)
e-mail: [EMAIL PROTECTED]
Tel.: +39 06 52 27 00 97
Fax : +39 06 52 27 23 13
<<inline: arsretiaLogo.gif>>
