https://issues.apache.org/bugzilla/show_bug.cgi?id=51993

--- Comment #8 from Tiago Torres <tiagobellotor...@gmail.com> 2012-04-10 
14:44:42 UTC ---
I see. But I didn't specify the line-height or the font-size of the block
element. FOP assumed a "normal" value and this value took precedence over the
natural line-height of a 7pt text, which I indeed specified in the inline
element. I just think it might be confusing for the end-user to have an
implicit value outweighing a value which was explicitly set.

Just for comparison, most browsers will render the following HTML snippet as
expected:

<p><span style="font-size:7pt">Lorem ipsum dolor sit amet, consectetur
adipisicing
elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
laborum.</span></p>

In fact, browsers seem to calculate line-height for each line individually
based on the maximum font-size of the line, which sounds reasonable. FOP seems
to do the same in most cases. However, assuming a default line-height for the
block seems to be causing inconsistent results.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to