NO!!!!!!!!!!! A font has a single set of widths - you should NOT be screwing with it!! Such hackery is the reason that the various PDF standards forbid such constructs in their PDFs.
If you want to control spacing, there are approved ways in PDF to do that - use them! Leonard -----Original Message----- From: ohlsen3000 [mailto:[email protected]] Sent: Thursday, April 29, 2010 4:39 PM To: [email protected] Subject: [iText-questions] Two BaseFont widths in one document Hi there, is there a way to use one BaseFont (let's say Helvetica) with two different width tables ? I found how to set the widths (baseFont.getWidths() and overwrite them with let's sy 2000). After that all text written in Helvetica is displayed with that increased monospace width, which is exactly waht I want. But if I set it back to the original value (1000) after writing with 2000 the formerly written text is also set back. So what I am trying would look like: T E X T TEXT ...using the same BaseFont. Thanks a lot, Uli -- View this message in context: http://old.nabble.com/Two-BaseFont-widths-in-one-document-tp28401484p28401484.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ ------------------------------------------------------------------------------ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
