aboutsummaryrefslogtreecommitdiffstats
path: root/test/xml/bugtests/line-height.fo
blob: eeb29bc04a03783b894b2113609e26ba2bab77db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?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 master-name="simplePM"
	                  page-height="25cm" 
	                  page-width="20cm"
	                  margin-top="1cm" 
	                  margin-bottom="1cm" 
	                  margin-left="1.5cm" 
	                  margin-right="1.5cm">
	      <fo:region-before extent="2.5cm"/>
	      <fo:region-body margin-top="3cm" margin-bottom="3cm"/>
	      <fo:region-after extent="2.5cm"/>
	    </fo:simple-page-master>
	</fo:layout-master-set>

	<fo:page-sequence master-name="simplePM">
	    <fo:flow flow-name="xsl-region-body">
			<fo:block font-weight="bold" text-align="center">
				<fo:inline text-decoration="underline">
					Absolute Values
				</fo:inline>
			</fo:block>


			<fo:block line-height="12pt" font-size="8pt"> 
			  This text has a fixed line height of 12pt and its font size is 8pt.
			  This text has a fixed line height of 12pt and its font size is 8pt.
			  This text has a fixed line height of 12pt and its font size is 8pt.
			  This text has a fixed line height of 12pt and its font size is 8pt.
			  This text has a fixed line height of 12pt and its font size is 8pt.
			</fo:block>


			<fo:block text-align="start" space-before.optimum="6pt" line-height="12pt" font-size="12pt"> 
			  This text has a fixed line height of 12pt and its font size is 12pt.
			  This text has a fixed line height of 12pt and its font size is 12pt.
			  This text has a fixed line height of 12pt and its font size is 12pt.
			  This text has a fixed line height of 12pt and its font size is 12pt.
			  This text has a fixed line height of 12pt and its font size is 12pt.
			</fo:block>


			<fo:block text-align="start" space-before.optimum="6pt" line-height="12pt" font-size="16pt"> 
			  This text has a fixed line height of 12pt and its font size is 16pt.
			  This text has a fixed line height of 12pt and its font size is 16pt.
			  This text has a fixed line height of 12pt and its font size is 16pt.
			  This text has a fixed line height of 12pt and its font size is 16pt.
			  This text has a fixed line height of 12pt and its font size is 16pt.
			</fo:block>

			<fo:block font-weight="bold" text-align="center">
				<fo:inline text-decoration="underline">
					Relative Values
				</fo:inline>
			</fo:block>

			<fo:block text-align="start" space-before.optimum="6pt" line-height="normal" font-size="10pt"> 
			  This text has a normal line height at font size of 10pt.
			  This text has a normal line height at font size of 10pt.
			  This text has a normal line height at font size of 10pt.
			  This text has a normal line height at font size of 10pt.
			  This text has a normal line height at font size of 10pt.
			</fo:block>

			<fo:block text-align="start" space-before.optimum="6pt" line-height="normal" font-size="14pt"> 
			  This text has a normal line height at font size of 14pt.
			  This text has a normal line height at font size of 14pt.
			  This text has a normal line height at font size of 14pt.
			  This text has a normal line height at font size of 14pt.
			  This text has a normal line height at font size of 14pt.
			</fo:block>

			<fo:block text-align="start" space-before.optimum="6pt" line-height="1.0" font-size="10pt"> 
			  This text is single-spaced at font size of 10pt.
			  This text is single-spaced at font size of 10pt.
			  This text is single-spaced at font size of 10pt.
			  This text is single-spaced at font size of 10pt.
			  This text is single-spaced at font size of 10pt.
			</fo:block>

			<fo:block text-align="start" space-before.optimum="6pt" line-height="1.0" font-size="14pt"> 
			  This text is single-spaced at font size of 14pt.
			  This text is single-spaced at font size of 14pt.
			  This text is single-spaced at font size of 14pt.
			  This text is single-spaced at font size of 14pt.
			  This text is single-spaced at font size of 14pt.
			</fo:block>

			<fo:block text-align="start" space-before.optimum="6pt" line-height="2.0" font-size="10pt"> 
			  This text is double-spaced at font size of 10pt.
			  This text is double-spaced at font size of 10pt.
			  This text is double-spaced at font size of 10pt.
			  This text is double-spaced at font size of 10pt.
			  This text is double-spaced at font size of 10pt.
			</fo:block>

			<fo:block text-align="start" space-before.optimum="6pt" line-height="2.0" font-size="14pt"> 
			  This text is double-spaced at font size of 14pt.
			  This text is double-spaced at font size of 14pt.
			  This text is double-spaced at font size of 14pt.
			  This text is double-spaced at font size of 14pt.
			  This text is double-spaced at font size of 14pt.
			</fo:block>
    
	    </fo:flow>
	</fo:page-sequence>
</fo:root>