Hello everybody, I want to build paragraph-objects with a couple of chunks that have different font-sizes.
for example: doc.open(); Paragraph p = new Paragraph(); Chunk c = new Chunk("We hate to write dummy-sentences. "); for(int i = 0; i < 4; i++, p.add(c)); Chunk theProblem = new Chunk("Attention "); theProblem.getFont().setSize(30); p.add(theProblem); doc.add(p); As you can see the last Chunk doesn't fit to the line and overdraws some of the words above. I know that I can change the line-spacing with "p.setLeading(x);" but that changes the leading of the whole paragraph. In this case I need the spacing just in the line where the words doesn't fit. Is there an elegant way to add different leading-values to a single paragraph or have I go to the low-level-programming? -- View this message in context: http://www.nabble.com/Problem-with-different-font-sizes-in-one-paragraph-tp25748056p25748056.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php 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/