Thanks, I understand it for horizontal writing text,
but in my case for a vertical PdfPCell in which the space left after the
text is kept although the text is wrapped...

In my opinion,
whether the text should be wrapped and the cell sized to the wrapped
string height.
Or the string shouldn't be wrapped at all.

Because it really looks strange to see enough space for writing the end
of the text and having it finished on the next line. (although noWrap is
set).

Thanks,

Miro






-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
1T3XT info
Sent: Monday, March 03, 2008 11:21 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] How to disable text wrapping in a
PdfPCell?

Gregan, Miroslav wrote:
> Hi all,
>  
> I changed the font from DejavuSansFont to Tahoma, and the cell's
content 
> is no more wrapped.
> How is it possible that changing the font modifies the cell's 
> wrapping behaviour (by mean for my particular case of course)?

Different fonts have different font metrics.
In a font, there are glyphs (the shapes that are drawn),
and there are metrics (the boundaries iText uses to decide
if a glyphs fits). Metrics can be greater or smaller than
the space needed to draw the glyphs. It all depends on your font.
-- 
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

-------------------------------------------------------------------------
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
[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