Use BaseFont.getWidthPoint().

Best Regards,
Paulo Soares

----- Original Message ----- 
From: "Sam Maina" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 10, 2003 17:03
Subject: [iText-questions] String Size


> I need help in determining the size if a string  of a particular font. I
> noticed that com.lowagie.text.pdf.
> <http://itext.sourceforge.net/docs/com/lowagie/text/pdf/PdfGraphics2D.Pd
> fFontMetrics.html> PdfGraphics2D.PdfFontMetrics  has a
> stringWidth(String) method which could probably be helpful.
> Unfortunately, the constructors of this class are private. How can solve
> this?
>  <mailto:[EMAIL PROTECTED]>  
> 



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to