Are you sure you need to do it? There's a Unicode range that has full width forms including roman characters. It starts at \uff00.
Best Regards, Paulo Soares > -----Original Message----- > From: [EMAIL PROTECTED] > [SMTP:[EMAIL PROTECTED] > Sent: Friday, March 14, 2003 6:57 > To: '[EMAIL PROTECTED]' > Subject: [iText-questions] Itext problem > > How could I change the traditional Chinese font widths? > My source code is as the following: > BaseFont bf = BaseFont.createt("/dir1/dir2/kaiu.ttf", > BaseFont.IDENTITY_H, BaseFont.EMBEDDED); > int widths[] = bf.getWidths(); > for (int k = 0; k < widths.length; ++k) { > if (widths[k] != 0) > widths[k] = 1000; } > bf.setForceWidthsOutput(true); > document.add(new Paragraph("A big text to show Helvetica with fixed > width.", new Font(bf))); > } > catch (Exception de) {de.printStackTrace(); } > document.close(); > > But it does not work ,the widths remain the same. > > > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open! > Get cracking and register here for some mind boggling fun and > the chance of winning an Apple iPod: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions