Re: [xep-support] line-height

From: Alexander Peshkov (peshkov@renderx.com)
Date: Tue Oct 21 2003 - 02:58:12 PDT

  • Next message: G. Ken Holman: "Re: [xep-support] line-height"

    Hello Thomas,

    First of all I suppose you meant:

     <fo:block line-height="100%">
         <fo:block font-size="12pt">blah blah</fo:block>
     </fo:block>

    with two blocks, not inline.

    XEP behavior is absolutely correct. As prescribed by spec value '100%'
    of line-height will be calculated using current font-height and when
    will be inherited. This way nested block will always have
    line-height="12pt" in case surrounding blocks font-height is 12pt. If
    you want to inherit scaling factor of line-height, not its calculated
    value you have to use following construction:

     <fo:block line-height="1">
         <fo:block font-size="12pt">blah blah</fo:block>
     </fo:block>

    In this case line-height relative value will be inherited down to the
    nested block and will be calculated depending on its font-size.

    For additional details please refer to section 7.15.4. "line-height" of XSL FO spec.

    Best regards,
    Alexander Peshkov mailto:peshkov@renderx.com
    RenderX

    TBid> Hello,

    TBid> the following fo:block is in one of my documents:

    TBid> <fo:block line-height="100%">
    TBid> <fo:inline font-size="12pt">blah blah</fo:block>
    TBid> </fo:block>

    TBid> when i reduce font-size to a value less than 8pt the line-height attribute
    TBid> doesn't work correctly.
    TBid> the more i reduce font-size the more space i will get between the lines.

    TBid> does anyone know why this happens?

    TBid> thanks!
    TBid> Thomas

    -------------------
    (*) 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/tos.html



    This archive was generated by hypermail 2.1.5 : Tue Oct 21 2003 - 02:59:55 PDT