Hi,

If you want to get rid of half leading on areas containing images or other non text items then specify font-size="0pt" If the area contains text then you can specify line-height="1.0" (default is 1.2x font size)

HTH,

Chris

On 20/03/2013 12:17, jsolutions wrote:
I'm trying to get rid of half leading at the top and bottom of reference
areas, as the line-height.conditionality property should, but I cannot get
it to work.

I'm sure I must be doing something wrong as I have been unable to find a
lack of compliance on the FOP web site. However, looking through the source
code (1.1) I cannot find where it is used. I am a little confused.

Here's some test code I cannot get working:

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
     <fo:layout-master-set>
         <fo:simple-page-master master-name="page">
             <fo:region-body region-name="body" margin="25.4mm"
                             border-width="0.1pt"
                             border-color="rgb(0,0,0)"
                             border-style="solid"
                             padding="0pt"/>
         </fo:simple-page-master>
     </fo:layout-master-set>
     <fo:page-sequence master-reference="page">
         <fo:flow font-family="Times" flow-name="body">
                 <fo:block font-size="36pt"
                           line-height="72pt"
                           line-height.conditionality="discard"
                           border-width="0.1pt"
                           border-color="rgb(255,0,0)"
                           border-style="solid">É Here is some 36pt text,
with 72pt height.</fo:block>
         </fo:flow>
     </fo:page-sequence>
</fo:root>

What am I doing wrong?

JC



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/line-height-conditionality-tp38191.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to