There's no bug. PdfContentByte is the basic canvas where everything is drawn
and underlined text is not a basic object, it consists of a font and a line.
Use ColumnText.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Andrea Franco [SMTP:[EMAIL PROTECTED]
> Sent: Monday, February 24, 2003 12:35
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] underlined Text
> 
> 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 Franco
> 
> p.s.
> I use itext0.96..
> 
> 
> -- 
> 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 *** << Message: Untitled Attachment >> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to