On 8/29/2014 6:19 PM, vadamovsky wrote: > iText mailing list wrote >> When you measure the characters in the Chunk, you measure the original >> characters. >> When you render the Arabic glyphs using ColumnText, the original >> characters in the Chunk are replaced by the ligaturization process. >> It should be obvious that the length of the original characters and the >> replaced characters may not be identical. > OK, thank you for the answer. > > So how do I get the real width of a chunk? > > I need to append dots (.................) after a text for a content page: > > Chapter one...............1 > Chapter two...............2 > Chapter three.............3 > etc.
In that case, you don't need the width of the Chunk, do you? Why not use the DottedLineSeparator class to add the dots? ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php