[xep-support] Still different line-heights
Kirch Fritz
Friedrich.Kirch at it2media.de
Mon Dec 18 00:55:48 PST 2017
Hi Kevin,
following your instructions (from below) to avoid different line-heights, I still failed.
I still have different line-heights. See my example files (fo-file, xep-file, pdf-file)
My overall goal is to put special characters into my text-flow without influencing the line height.
Would you please be so kind and help me again.
Fritz Kirch
IT2media GmH & Co KG
Von: Kevin Brown [mailto:kevin at renderx.com]
Gesendet: Donnerstag, 27. Juli 2017 19:59
An: Kirch Fritz <Friedrich.Kirch at it2media.de>; support at renderx.com; 'RenderX Community Support List' <xep-support at renderx.com>
Betreff: RE: Different line-heights
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 at it2media.de]
Sent: Thursday, July 27, 2017 6:44 AM
To: support at renderx.com<mailto:support at renderx.com>; RenderX Community Support List <xep-support at renderx.com<mailto:xep-support at renderx.com>>
Cc: kevin at renderx.com<mailto:kevin at 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
[cid:image001.jpg at 01D377E1.9C1ED690]
Mit freundlichen Grüßen
Friedrich Kirch
PDP-CBM Content Base & Media
Tel. +49 911 30 730-0
Fax +49 911 30 730-111
friedrich.kirch at it2media.de<mailto:friedrich.kirch at it2media.de>
www.it2media.de<http://www.it2media.de/>
[Logo_IT2media]
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20171218/4cdbab4c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 95860 bytes
Desc: image001.jpg
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20171218/4cdbab4c/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 2586 bytes
Desc: image002.gif
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20171218/4cdbab4c/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: klopppunkt~~~.XEP
Type: application/octet-stream
Size: 12775 bytes
Desc: klopppunkt~~~.XEP
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20171218/4cdbab4c/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: klopppunkt~~~.fo
Type: application/octet-stream
Size: 3006 bytes
Desc: klopppunkt~~~.fo
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20171218/4cdbab4c/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: klopppunkt~~~.PDF
Type: application/pdf
Size: 4684 bytes
Desc: klopppunkt~~~.PDF
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20171218/4cdbab4c/attachment-0001.pdf>
More information about the Xep-support
mailing list