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

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Mon Jul 30 2007 - 19:13:41 PDT

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:

   <fo:block line-height="1">

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@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@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
Received on Mon Jul 30 19:46:56 2007

This archive was generated by hypermail 2.1.8 : Mon Jul 30 2007 - 19:46:57 PDT