> When you create a Paragraph this way: Paragraph p1 = new Paragraph();
> you don't define a leading, so the default leading (16pt) is used;
> this is the default if you don't define any font; otherwise the
> default font is 1.5 times the font size.
> Then you add Phrases to these paragraph using font sizes that exceed
> this default leading (20 > 16). Adding a Phrase with a specific font
> to a Paragraph doesn't change the leading of this paragraph.
> It's only normal that the last Paragraph overwrites the one before.
> It's elementary; nothing is wrong here; iText is doing exactly what
> you ask iText to do.
> br,
> Bruno
> 

Thanks for your help! I understand that. Now I have another question. If I 
create the Paragraph with the font of the Phrase that I want to add I will get 
another problem if I want to add another Phrase into the Paragraph where the 
font style is for example not bold. The written Paragraph text is completly 
bold. Can I handle this behaviour? In my program I get different formatted 
Phrases, with different font sizes and styles and I have to add them into a 
Paragraph object. Do you have any idea how I could do this?





-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to