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?





1T3XT info wrote:
> 
> rajeshkatkam wrote:
>> Does line spacing depend on font name?
> 
> It doesn't depend on font name, but it can depend on font size.
> 
>> I am converting HTML string to PDF
>> using Itext but line spacing is not consistent from one font to other
>> font
>> in column text.
> 
> Are we talking about text mode or composite mode?
> 
>> I am using setLeading to set the line space
> 
> Where? If you use setLeading on the ColumnText object, it will be 
> ignored in composite mode.
> 
>> but it is
>> working for only some fonts. Basically for the same fontsize some fonts
>> are
>> giving large line space, but PDF taking same line space for all fonts.
>> Hoe
>> to fix this?. Thanks in advance.
> 
> Without an example demonstrating the problem, it's very hard to comment 
> on this.
> -- 
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Does-line-spacing-depend-on-font-size--tp9010557p20975692.html
Sent from the iText - General mailing list archive at Nabble.com.


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