Bug 12448 - Height of lines set by line-height are too short.
Summary: Height of lines set by line-height are too short.
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 0.20.4
Hardware: All All
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-09 18:10 UTC by John mickey
Modified: 2012-04-01 06:27 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John mickey 2002-09-09 18:10:18 UTC
The actual line height of lines of text are coming out shorter than the 
specified value.

In the following example, there are two blocks with yellow backgrounds 
seperated by a 1in space. The line-heights of the two yellow blocks are set to 
0.25in. Each block should have 4 lines of text, for a total block height of 1in 
(4 x 0.25in). When rendered, the height of the blocks are noticably shorter 
than the 1in space.

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<fo:layout-master-set>
		<fo:simple-page-master margin-bottom="0.25in" margin-
right="0.6in" margin-left="0.4in" page-height="11in" page-width="8.5in" master-
name="body">
			<fo:region-after extent="14pt"/>
			<fo:region-body margin-top="0.5in"/>
		</fo:simple-page-master>
	</fo:layout-master-set>
	<fo:page-sequence master-reference="body">
		<fo:flow flow-name="xsl-region-body">
			<fo:block font-family="Courier" font-size="12pt" line-
height="0.25in" hyphenate="false" background-color="yellow" space-
after="1in">This is some text. This is some text. This is some text. This is 
some text. This is some text. This is some text. This is some text. This is 
some text. This is some text. This is some text. This is some text. This is 
some text. This is some text. This is some text. This is some text. </fo:block>
			<fo:block font-family="Courier" font-size="12pt" line-
height="0.25in" hyphenate="false" background-color="yellow" space-
after="1in">This is some text. This is some text. This is some text. This is 
some text. This is some text. This is some text. This is some text. This is 
some text. This is some text. This is some text. This is some text. This is 
some text. This is some text. This is some text. This is some text. </fo:block>	
	
		</fo:flow>
	</fo:page-sequence>
</fo:root>
Comment 1 Pascal Sancho 2007-10-23 07:33:38 UTC
Bug fixed in latest Trunk (rev 584703), and probably in FOP 0.94 and earlier
versions
Comment 2 Glenn Adams 2012-04-01 06:27:09 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed