I believe the specification says … setting line-height on a block containing other things sets the *minimal* line-height for all the contained blocks/inlines. *Minimal* does not mean that you are setting the *exact* line height. When you set it to a multiplier (number or likely percentage) then it is like not setting it and it is calculating the line height for all the blocks inside which gives you your expected (exact) result.
The spec also says setting line-height on inline level elements (like your fo:inline) sets the exact line-height for the item.
Moving your line-height="3.1mm" to all the included fo:inline’s from the parent block and the results show all the same line-height for each one.
W3Schools:
If the line-height property is set on a block-level element, it specifies the minimal height of each generated inline box.
If the line-height property is set on an inline-level element, it specifies the exact height of each box generated by the element.
Kevin Brown
RenderX
From: Kirch Fritz [mailto:Friedrich.Kirch@it2media.de]
Sent: Thursday, July 27, 2017 6:44 AM
To: support@renderx.com; RenderX Community Support List <xep-support@renderx.com>
Cc: kevin@renderx.com
Subject: Different line-heights
Hi RenderX Support,
In my fo-example file (see attachment) I expect all blocks to have identical line-height.
The second fo:block itself has only an additional <fo:inline>-element with a small font-size.
Can you please explain, why the second fo:block’s line-height is different in the resulting pdf?
HINT:
a) If you remove the @line-height then all lines will have identical line-height
b) If you change @line-height=<length> to @line-height=<number>, then all lines will have identical line-height
c) If you set @line-height=<length>, then the second fo:block will have a different line-height.
Attached you can find my fo-file and the pdf-file
Kind regards
Fritz Kirch
Mit freundlichen Grüßen
Friedrich Kirch
PDP-CBM Content Base & Media
Tel. +49 911 30 730-0
Fax +49 911 30 730-111
<mailto:friedrich.kirch@it2media.de> friedrich.kirch@it2media.de
<http://www.it2media.de/> www.it2media.de
IT2media GmbH & Co. KG, Pretzfelder Str. 13, 90425 Nürnberg ∙ Kommanditgesellschaft Sitz Nürnberg, HRA Nürnberg 12784 ∙ Persönlich haftende Gesellschafterin: IT2media Beteiligungsgesellschaft mbH, Sitz Nürnberg, HRB Nürnberg 19511 ∙ Geschäftsführer: Oliver Neuerbourg, Mathias Pauli
_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
This archive was generated by hypermail 2.1.8 : Thu Jul 27 2017 - 10:59:58 PDT