Eric Summkeller wrote:
> I create a Paragraph with a special underlined font and add this Paragraph 
> into a PdfPCell. The problem is, that the underline and the dots of the 
> letters "ÄÖÜ" overlap the PdfPCell. What can I do, that the Paragraph 
> complety 
> fits into the PdfPCell?

The dots over the letters: if your font doesn't take them
into account in the ascender, you're out of luck.
This was already answered by Bruno before.

The line in the underlined font: you can define the position
of the line yourself. Please read the mailing list archives:
http://www.nabble.com/Re%3A-HTMLWORKER-parsed-underlines-too-low-p15869510.html
or have a look at the method setUnderline for class Chunk.

There are 2 values for the thickness of the line: one absolute value
and one value that is a multiplication of the font size. The default
value is 1 / 15 of the font size.

There are also 2 values for the placement of the line. The default
value is 1 / 3 of the font size.

In other words: if you have a font size 15, the line will be drawn
5 pts under the baseline of the text and will have a thickness of 1pt.
-- 
This answer is provided by 1T3XT BVBA

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to