Debian Codegraph @

samples/tests/spec12/text/lineHeightFontShorthand.svg

raw
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
3 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
5 <!--
6
7 Licensed to the Apache Software Foundation (ASF) under one or more
8 contributor license agreements. See the NOTICE file distributed with
9 this work for additional information regarding copyright ownership.
10 The ASF licenses this file to You under the Apache License, Version 2.0
11 (the "License"); you may not use this file except in compliance with
12 the License. You may obtain a copy of the License at
13
14 http://www.apache.org/licenses/LICENSE-2.0
15
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21
22 -->
23
24 <!-- ====================================================================== -->
25 <!-- Image element references an SVG file -->
26 <!-- -->
27 <!-- @author [email protected] -->
28 <!-- @version $Id$ -->
29 <!-- ====================================================================== -->
30
31 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
32
33 <svg width="450" height="500" viewBox="0 0 450 500"
34 xmlns="http://www.w3.org/2000/svg" version="1.2"
35 xmlns:xlink="http://www.w3.org/1999/xlink">
36
37 <title>Test CSS 'font' shorthand 'line-height'</title>
38 <text class="title" x="50%" y="30"
39 >Test CSS 'font' shorthand 'line-height'</text>
40
41 <style type="text/css"><![CDATA[
42 @font-face { font-family: "bolder"; src: "Courier" }
43 .f1 { font: 20px Serif; }
44 .f2 { font: 20/2 SanSerif; }
45 .f3 { font: 20/1 times; }
46 .f4 { font: bold 20/.5 monico; }
47 .f5 { font: italic 20/30px times; }
48 .f6 { font: bold italic 20/15px times; }
49 .f7 { font: italic bold 20/15px times; }
50 .f8 { font: 700 20/1em times; }
51 .f9 { font: 700 20/75% times; }
52 flowRegion > rect { fill: none; }
53 ]]></style>
54
55 <g id="testContent" font="8pt sanserif">
56 <flowRoot><flowRegion
57 ><rect x="10" y="60" width="200" height="90"/></flowRegion>
58 <flowDiv><flowPara class="f1"
59 >font:<flowLine/>20px Serif</flowPara></flowDiv></flowRoot>
60
61 <flowRoot><flowRegion
62 ><rect x="10" y="100" width="200" height="90"/></flowRegion>
63 <flowDiv><flowPara class="f2"
64 >font:<flowLine/>20/2 SanSerif</flowPara></flowDiv></flowRoot>
65
66 <flowRoot><flowRegion
67 ><rect x="10" y="180" width="200" height="90"/></flowRegion>
68 <flowDiv><flowPara class="f3"
69 >font:<flowLine/>20/1 times</flowPara></flowDiv></flowRoot>
70
71 <flowRoot><flowRegion
72 ><rect x="10" y="240" width="200" height="90"/></flowRegion>
73 <flowDiv><flowPara class="f3"
74 >font:<flowLine/>bold 20/.5 times</flowPara></flowDiv></flowRoot>
75
76 <flowRoot><flowRegion
77 ><rect x="10" y="300" width="200" height="90"/></flowRegion>
78 <flowDiv><flowPara class="f4"
79 >font:<flowLine/>bold 20/.5 times</flowPara></flowDiv></flowRoot>
80
81 <flowRoot><flowRegion
82 ><rect x="10" y="330" width="200" height="90"/></flowRegion>
83 <flowDiv><flowPara class="f5"
84 >font:<flowLine/>italic 20/30px times</flowPara></flowDiv></flowRoot>
85
86 <flowRoot><flowRegion
87 ><rect x="10" y="420" width="200" height="90"/></flowRegion>
88 <flowDiv><flowPara class="f6"
89 >font:<flowLine/>bold italic 20/15px times</flowPara></flowDiv></flowRoot>
90
91 <flowRoot><flowRegion
92 ><rect x="225" y="60" width="200" height="90"/></flowRegion>
93 <flowDiv><flowPara class="f7"
94 >font:<flowLine/>italic bold 20/15px times</flowPara></flowDiv></flowRoot>
95
96 <flowRoot><flowRegion
97 ><rect x="225" y="120" width="200" height="90"/></flowRegion>
98 <flowDiv><flowPara class="f8"
99 >font:<flowLine/>700 20/1em times</flowPara></flowDiv></flowRoot>
100
101 <flowRoot><flowRegion
102 ><rect x="225" y="180" width="200" height="90"/></flowRegion>
103 <flowDiv><flowPara class="f9"
104 >font:<flowLine/>700 20/75% times</flowPara></flowDiv></flowRoot>
105
106 <flowRoot font-size="20"><flowRegion
107 ><rect x="225" y="230" width="200" height="90"/></flowRegion>
108 <flowDiv><flowPara line-height="1.5"><flowSpan line-height=".75"
109 >para: 1.5,<flowLine/>line:.75</flowSpan></flowPara></flowDiv></flowRoot>
110
111
112 <flowRoot font-size="20"><flowRegion
113 ><rect x="225" y="290" width="200" height="90"/></flowRegion>
114 <flowDiv><flowPara line-height=".75"><flowSpan line-height="1.5"
115 >para: .75,<flowLine/>line:1.5</flowSpan></flowPara></flowDiv></flowRoot>
116
117 <flowRoot font-size="20"><flowRegion
118 ><rect x="225" y="350" width="200" height="90"/></flowRegion>
119 <flowDiv><flowPara line-height="1"><flowSpan font-size="6"
120 >blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah</flowSpan></flowPara></flowDiv></flowRoot>
121
122
123 <flowRoot font-size="20"><flowRegion
124 ><rect x="225" y="410" width="200" height="90"/></flowRegion>
125 <flowDiv><flowPara font-size="6"><flowSpan
126 >blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah</flowSpan></flowPara></flowDiv></flowRoot>
127
128 </g>
129 </svg>