The easiest way is to have:

columnText.setLeading(0, 1);

It will always work whatever the font size is.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Joao Mello [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, November 27, 2002 13:40
> To:   [EMAIL PROTECTED]
> Subject:      RE: [iText-questions] Calculate the height of a font
> 
> I print the lines using 
> columnText.setSimpleColumn(x,y,w,h,14.0f,Alignment()).
> 
> Thank you,
>    Jo�o Mello
> --- Paulo Soares <[EMAIL PROTECTED]> wrote:
> > How are you printing the lines?
> > 
> > Best Regards,
> > Paulo Soares
> > 
> > > -----Original Message-----
> > > From:     Joao Mello [SMTP:[EMAIL PROTECTED]]
> > > Sent:     Tuesday, November 26, 2002 19:41
> > > To:       [EMAIL PROTECTED]
> > > Subject:  [iText-questions] Calculate the height of
> > a font
> > > 
> > > Can someone help me, please. I need to calculate
> > the
> > > height of the text based on the font+size, so I
> > known
> > > where I can print my next line without overlape
> > the
> > > previous.
> > > Thank you,
> > >    Jo�o Mello
> 


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to