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">
7 Copyright 2001-2002 The Apache Software Foundation
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
22 <!-- ========================================================================= -->
23 <!-- Test the x,dx and y,dy attributes -->
25 <!-- @author tkormann@ilog.fr -->
26 <!-- @version $Id: textPosition.svg,v 1.4 2004/08/18 07:12:23 vhardy Exp $ -->
27 <!-- ========================================================================= -->
28 <?xml-stylesheet type=
"text/css" href=
"../resources/test.css" ?>
30 <svg xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" width=
"450" height=
"500" viewBox=
"0 0 450 500">
31 <title>Text Position
</title>
33 <style type=
"text/css"><![CDATA[
41 <!-- ============================================================= -->
43 <!-- ============================================================= -->
45 <text class=
"title" x=
"50%" y=
"30">Text Position
</text>
47 <g id=
"testContent" style=
"font-family:Arial; font-size:24px">
49 <!-- ################################################################ -->
51 <text x=
"50" y=
"80">Batik
</text>
52 <text x=
"50" y=
"100" class=
"info"><text
x=
"100" y=
"80"></text>
54 <text x=
"240" y=
"80" style=
"letter-spacing:20">Batik
</text>
55 <text x=
"240" y=
"100" class=
"info"><text
x=
"240" y=
"80" letter-spacing=
"20"></text>
58 <text x=
"50 70 90 110 130" y=
"140">Batik
</text>
59 <text x=
"50" y=
"160" class=
"info"><text
x=
"50 70 90 110 130" y=
"140"></text>
61 <text dx=
"240 20 20 20 20" y=
"140">Batik
</text>
62 <text x=
"240" y=
"160" class=
"info"><text
dx=
"240 20 20 20 20" y=
"140"></text>
64 <!-- ################################################################ -->
66 <text><tspan x=
"50" y=
"200">Batik
</tspan></text>
67 <text x=
"50" y=
"220" class=
"info"><tspan
x=
"50" y=
"200"></text>
69 <text><tspan x=
"240" y=
"200" style=
"letter-spacing:20">Batik
</tspan></text>
70 <text><tspan x=
"240" y=
"220" class=
"info"><tspan
x=
"240" y=
"200" letter-spacing=
"20"></tspan></text>
73 <text><tspan x=
"50 70 90 110 130" y=
"260">Batik
</tspan></text>
74 <text x=
"50" y=
"280" class=
"info"><tspan
x=
"50 70 90 110 130" y=
"260"></text>
76 <text><tspan dx=
"240 20 20 20 20" y=
"260">Batik
</tspan></text>
77 <text x=
"240" y=
"280" class=
"info"><tspan
dx=
"240 20 20 20 20" y=
"260"></text>
79 <!-- ################################################################ -->
81 <text><tspan x=
"50 60 70 80 90" dx=
"0 10 20 30 40" y=
"320">Batik
</tspan></text>
82 <text x=
"50" y=
"340" class=
"info"><tspan
x=
"50 60 70 80 90" <tspan x=
"83" dy=
"1.1em">dx=
"0 10 20 30 40" y=
"320"></tspan></text>
85 <text><tspan x=
"240" dx=
"0 10 10 10 10" y=
"320" style=
"letter-spacing:10">Batik
</tspan></text>
86 <text x=
"240" y=
"340" class=
"info"><tspan
x=
"240" dx=
"0 10 10 10 10" <tspan x=
"273" dy=
"1.1em">y=
"320" style=
"letter-spacing:10"></tspan></text>
89 <!-- ################################################################ -->
91 <text><tspan x=
"50" letter-spacing=
"10" y=
"380">Batik
</tspan><tspan x=
"10" y=
"380"/></text>
92 <text x=
"50" y=
"400" class=
"info">Empty Trailing tspan
</text>
95 <text><tspan x=
"200" y=
"380"/><tspan x=
"240" letter-spacing=
"20" y=
"380">Batik
</tspan></text>
96 <text x=
"240" y=
"400" class=
"info">Empty Preceeding tspan
</text>
101 <!-- ============================================================= -->
102 <!-- Batik sample mark -->
103 <!-- ============================================================= -->
104 <use xlink:
href=
"../resources/batikLogo.svg#Batik_Tag_Box" />