[xep-support] How to control spacing between lines within a single block

janofskyj at comcast.net janofskyj at comcast.net
Wed Aug 1 04:51:41 PDT 2007


Ken,

I was using negative spacing to reduce the space between blocks, however, my intent was to reduce the space between the lines. I think using line height is the correct way to do it. Thank you for that information! I will try it.

Jerry J


-------------- Original message -------------- 
From: "G. Ken Holman" <gkholman at CraneSoftwrights.com> 

> At 2007-07-30 20:08 -0400, Jerry Janofsky wrote: 
> >When text scrolls within a fo:block, is there a way to control the 
> >spacing between the lines? I want to be able to reduce the space. I 
> >am able to reduce the space between blocks by using a negative value 
> >for the space-after attribute. 
> > 
> >Any suggestions would be appreciated. 
> 
> The space between lines is called leading and is controlled by the 
> line height. If you say nothing about line height, the initial value 
> is anything between 1.0 and 1.2, depending on the decision of the 
> XSL-FO engine. 
> 
> To remove leading you can say: 
> 
> 
> 
> You could even tighten things up if you wanted and you weren't 
> worried about descenders touching ascenders. 
> 
> I've never found a need to use negative line spacing in a production 
> environment ... what effect are you trying to get? If you change 
> line height to "1" you probably can remove the negative space-after. 
> 
> I hope this helps. 
> 
> . . . . . . . . . . . Ken 
> 
> 
> -- 
> Upcoming public training: XSLT/XSL-FO Sep 10, UBL/code lists Oct 1 
> World-wide corporate, govt. & user group XML, XSL and UBL training 
> RSS feeds: publicly-available developer resources and training 
> G. Ken Holman mailto:gkholman at CraneSoftwrights.com 
> Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/ 
> Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) 
> Male Cancer Awareness Jul'07 http://www.CraneSoftwrights.com/f/bc 
> Legal business disclaimers: http://www.CraneSoftwrights.com/legal 
> 
> ------------------- 
> (*) To unsubscribe, send a message with words 'unsubscribe xep-support' 
> in the body of the message to majordomo at renderx.com from the address 
> you are subscribed from. 
> (*) By using the Service, you expressly agree to these Terms of Service 
> http://www.renderx.com/terms-of-service.html 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20070801/7182746e/attachment.html>


More information about the Xep-support mailing list