Debian Codegraph @

samples/tests/spec12/text/flowTextAlign.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 <!-- Tests various text on a path -->
25 <!-- -->
26 <!-- @author [email protected] -->
27 <!-- @version $Id$ -->
28 <!-- ====================================================================== -->
29
30 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
31
32 <svg id="body" width="450" height="500" viewBox="0 0 450 500"
33 xmlns="http://www.w3.org/2000/svg" version="1.2"
34 xmlns:xlink="http://www.w3.org/1999/xlink" >
35
36 <title>Test of Text vertical-align.</title>
37
38 <g id="content" >
39 <text class="title" x="50%" y="40">Test of Text vertical-align</text>
40
41 <g font-family="serif" transform="translate(0,60)">
42 <g fill="rgb(220,220,255)">
43 <rect x="12.5" y="0" width="125" height="36"/>
44 <rect x="162.5" y="0" width="125" height="36"/>
45 <rect x="312.5" y="0" width="125" height="36"/>
46 </g>
47
48 <flowRoot font-size="24" xml:space="preserve">
49 <flowRegion vertical-align="top">
50 <rect x="12.5" y="0" width="125" height="36" visibility="hidden"/>
51 </flowRegion>
52 <flowRegion vertical-align="middle">
53 <rect x="162.5" y="0" width="125" height="36" visibility="hidden"/>
54 </flowRegion>
55 <flowRegion vertical-align="bottom">
56 <rect x="312.5" y="0" width="125" height="36" visibility="hidden"/>
57 </flowRegion>
58 <flowDiv>
59 <flowRegionBreak justification="middle"
60 >Try top</flowRegionBreak>
61 <flowRegionBreak justification="middle"
62 >Try middle</flowRegionBreak>
63 <flowRegionBreak justification="middle"
64 >Try bottom</flowRegionBreak>
65 </flowDiv>
66 </flowRoot>
67 </g>
68
69 <g font-family="serif" transform="translate(0,120)" >
70 <g fill="rgb(220,220,255)">
71 <rect x="12.5" y="0" width="125" height="36"/>
72 <rect x="12.5" y="40" width="125" height="36"/>
73 <rect x="162.5" y="0" width="125" height="36"/>
74 <rect x="162.5" y="40" width="125" height="36"/>
75 <rect x="312.5" y="0" width="125" height="36"/>
76 <rect x="312.5" y="40" width="125" height="36"/>
77 </g>
78
79 <flowRoot font-size="24" xml:space="preserve">
80 <flowRegion vertical-align="top">
81 <rect x="12.5" y="0" width="125" height="36" visibility="hidden"/>
82 <rect x="12.5" y="40" width="125" height="36" visibility="hidden"/>
83 </flowRegion>
84 <flowRegion vertical-align="middle">
85 <rect x="162.5" y="0" width="125" height="36" visibility="hidden"/>
86 <rect x="162.5" y="40" width="125" height="36" visibility="hidden"/>
87 </flowRegion>
88 <flowRegion vertical-align="bottom">
89 <rect x="312.5" y="0" width="125" height="36" visibility="hidden"/>
90 <rect x="312.5" y="40" width="125" height="36" visibility="hidden"/>
91 </flowRegion>
92 <flowDiv>
93 <flowRegionBreak justification="middle"
94 >Try top two lines</flowRegionBreak>
95 <flowRegionBreak justification="middle"
96 >Middle two lines</flowRegionBreak>
97 <flowRegionBreak justification="middle"
98 >Bottom two lines</flowRegionBreak>
99 </flowDiv>
100 </flowRoot>
101 </g>
102
103 <g font-family="serif" transform="translate(0,220)" >
104 <g fill="rgb(220,220,255)">
105 <rect x="12.5" y="0" width="125" height="72"/>
106 <rect x="162.5" y="0" width="125" height="72"/>
107 <rect x="312.5" y="0" width="125" height="72"/>
108 </g>
109
110 <flowRoot font-size="24" xml:space="preserve">
111 <flowRegion vertical-align="top">
112 <rect x="12.5" y="0" width="125" height="72" visibility="hidden"/>
113 </flowRegion>
114 <flowRegion vertical-align="middle">
115 <rect x="162.5" y="0" width="125" height="72" visibility="hidden"/>
116 </flowRegion>
117 <flowRegion vertical-align="bottom">
118 <rect x="312.5" y="0" width="125" height="72" visibility="hidden"/>
119 </flowRegion>
120 <flowDiv>
121 <flowRegionBreak justification="middle"
122 >Try top two lines</flowRegionBreak>
123 <flowRegionBreak justification="middle"
124 >Middle two lines</flowRegionBreak>
125 <flowRegionBreak justification="middle"
126 >Bottom two lines</flowRegionBreak>
127 </flowDiv>
128 </flowRoot>
129 </g>
130
131 <g font-family="serif" transform="translate(0,320)" >
132 <g fill="rgb(220,220,255)">
133 <rect x="12.5" y="0" width="125" height="72"/>
134 <rect x="162.5" y="0" width="125" height="72"/>
135 <rect x="312.5" y="0" width="125" height="72"/>
136 </g>
137
138 <flowRoot font-size="24" xml:space="preserve">
139 <flowRegion vertical-align="top">
140 <rect x="12.5" y="0" width="125" height="72" visibility="hidden"/>
141 </flowRegion>
142 <flowRegion vertical-align="middle">
143 <rect x="162.5" y="0" width="125" height="72" visibility="hidden"/>
144 </flowRegion>
145 <flowRegion vertical-align="bottom">
146 <rect x="312.5" y="0" width="125" height="72" visibility="hidden"/>
147 </flowRegion>
148 <flowDiv>
149 <flowPara justification="middle"
150 >Try top</flowPara>
151 <flowRegionBreak justification="middle"
152 >two lines</flowRegionBreak>
153 <flowPara justification="middle"
154 >Middle</flowPara>
155 <flowRegionBreak justification="middle"
156 >two lines</flowRegionBreak>
157 <flowPara justification="middle"
158 >Bottom</flowPara>
159 <flowRegionBreak justification="middle"
160 >two lines</flowRegionBreak>
161 </flowDiv>
162 </flowRoot>
163 </g>
164 </g>
165
166 <!-- ============================================================= -->
167 <!-- Batik sample mark -->
168 <!-- ============================================================= -->
169 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
170 </svg>