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

             Bug #: 51993
           Summary: Incorrect line-height for fo:inline inside fo:block
           Product: Fop
           Version: 1.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: tiagobellotor...@gmail.com
    Classification: Unclassified


Created attachment 27728
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27728
FO file that reproduces the issue.

When I place an "fo:inline" element which specifies a small font-size inside an
"fo:block" element, the line-height in the rendered PDF looks bigger than
necessary. Here's a code snippet of my FO:

<fo:block>
<fo:inline 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.</fo:inline>
</fo:block>

In contrast, when I just have an "fo:block" which specifies the font-size, the
line-height in the rendered PDF looks correct. For example:

<fo:block 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.
</fo:block>

I believe this problem is related to the fact that FOP assumes a default
font-size (or line-height) for the "fo:block", which turns out to be too large
in the example I showed.

This issue has been discussed on the mailing list, but I haven't found bug
reports:

http://osdir.com/ml/fop-users-xmlgraphics.apache.org/2011-02/msg00114.html

I'm also attaching an FO file which reproduces the behavior I described.

-- 
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