First thanks for your help!
I fixed the bug in my code, but the effect is still the same. The second
Phrase in the Paragraph is written in bold although it is not formatted in
bold. Any other ideas what I could do?
-
Thi
If you look at this code of yours with fresh eyes, I think you'll discover a
problem:
...
Phrase phrase2 = new Phrase();
phrase1.add(chunk2);
par.add(phrase1);
par.add(phrase2);
...
Phrase2 is empty. Try adding chunk2 to phrase2 and see if the problem goes
away.
Best wishes,
---Mister Bean
First I create two Phrase objects with different Fonts. The first created
Phrase has a bold Font and the second not. After that I add those both Phrase
objects into a Paragraph. I create the Paragraph object with the first Font
because I would like to create a Chapter out of this Paragraph and t