Use BaseFont.getWidthPoint() to get the width of a single character. The width is proportional to the font size, the calculation is direct.
Best Regards, Paulo Soares > -----Original Message----- > From: Kit Hsu [SMTP:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 21:40 > To: '[EMAIL PROTECTED]' > Subject: [iText-questions] Create scaled font > > Hi, > > I am using a fixed-width font (courier) and I want to calculate the font > size I should use such that the width of a character is exactly XXX > points. > How can this be achieved? (without trials and errors) Thanks in advance. > > Kit > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
