rajeshkatkam wrote:
> Thank for response.I am using composite mode od columntext and setLeading
> applied with paragraph.
> I am uploading files of how it is looking in web page and how it is
> appearing in PDF
> 
>  this image is what we are seeing in web page
> 
> http://www.nabble.com/file/p20975692/screen1.jpg screen1.jpg 
> 
> Following image shows the PDF for the above content
> 
> http://www.nabble.com/file/p20975692/screen2.jpg screen2.jpg 
> 
> This PDF is generated using p.setLeading(0F,1.1F). If we use 1.6F for
> multiplied leading
> it is showing like what we are seeing in web page, but the text with other
> fonts are getting large line space. Any idea?

Maybe I should amend my first answer.

The font size of a font isn't the height of any specific glyph; it's an 
indication of the vertical space used by a line of text. My idea is that 
for most of the fonts you are using this "indication" is accurate (large 
line space); however for that one font that looks like handwriting, the 
font size is somewhat off.

Why? That depends on how the font was made...
So your initial idea that the problem was related to the font name was 
in the right direction. It doesn't depend on the font name, but on the 
glyph metrics vs glyph description of that specific font.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to