logo       

Re: String Size: msg#00161

java.lib.itext.general

Subject: Re: String Size

Use BaseFont.getWidthPoint().

Best Regards,
Paulo Soares

----- Original Message -----
From: "Sam Maina" <smaina@xxxxxxxxxx>
To: <itext-questions@xxxxxxxxxxxxxxxxxxxxx>
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:smaina@xxxxxxxxxx>
>



-------------------------------------------------------
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.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise