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 2003 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: textGlyphOrientationHorizontal.svg,v 1.3 2004/08/18 07:12:21 vhardy Exp $ -->
27 <!-- ====================================================================== -->
29 <?xml-stylesheet type=
"text/css" href=
"../resources/test.css" ?>
31 <svg width=
"450" height=
"500" viewBox=
"0 0 450 500"
32 xmlns=
"http://www.w3.org/2000/svg"
33 xmlns:
xlink=
"http://www.w3.org/1999/xlink" >
34 <title>Text Orientation Horizontal
</title>
36 <!-- ============================================================= -->
38 <!-- ============================================================= -->
41 <path id=
"path" style=
"fill:none; stroke:blue;"
42 d=
"M 20 40 C 40 20 60 0 80 20 C 100 40 120 60 140 40
43 C 160 20 180 20 180 20"/>
44 <path id=
"lpath" style=
"fill:none; stroke:blue;"
45 d=
"M 20 40 c 40 -20 80 -40 120 -20 c 40 20 80 40 120 20
46 c 40 -20 80 -20 80 -20"/>
50 <text class=
"title" x=
"50%" y=
"30">Text Orientation Horizontal
</text>
52 <g id=
"testContent" style=
"font-family:Arial; font-size:24px">
54 <line x1=
"50" x2=
"200" y1=
"80" y2=
"80"
55 stroke=
"blue" stroke-width=
"2"/>
56 <text x=
"50" y=
"80" glyph-orientation-horizontal=
"0">Batik is Good
</text>
58 <g transform=
"translate(220, 60)">
59 <use xlink:
href=
"#path" fill=
"none" stroke=
"blue" stroke-width=
"2"/>
60 <text glyph-orientation-horizontal=
"0">
61 <textPath xlink:
href=
"#path">Batik
<tspan fill=
"red" dy=
"-10">is
</tspan><tspan dy=
"10"> Good
</tspan></textPath>
65 <line x1=
"50" x2=
"400" y1=
"130" y2=
"130"
66 stroke=
"blue" stroke-width=
"2"/>
67 <text x=
"50" y=
"130" glyph-orientation-horizontal=
"90"
70 <g transform=
"translate(30, 150)">
71 <use xlink:
href=
"#lpath" fill=
"none" stroke=
"blue" stroke-width=
"2"/>
72 <text glyph-orientation-horizontal=
"90">
73 <textPath xlink:
href=
"#lpath">Batik
<tspan fill=
"red" dy=
"-10">is
</tspan><tspan dy=
"10"> Good
</tspan></textPath>
78 <line x1=
"50" x2=
"200" y1=
"240" y2=
"240"
79 stroke=
"blue" stroke-width=
"2"/>
80 <text x=
"50" y=
"240" glyph-orientation-horizontal=
"180"
83 <g transform=
"translate(220, 220)">
84 <use xlink:
href=
"#path" fill=
"none" stroke=
"blue" stroke-width=
"2"/>
85 <text glyph-orientation-horizontal=
"180">
86 <textPath xlink:
href=
"#path">Batik
<tspan fill=
"red" dy=
"-10">is
</tspan><tspan dy=
"10"> Good
</tspan></textPath>
91 <line x1=
"50" x2=
"400" y1=
"320" y2=
"320"
92 stroke=
"blue" stroke-width=
"2"/>
93 <text x=
"50" y=
"320" glyph-orientation-horizontal=
"270"
96 <g transform=
"translate(30, 340)">
97 <use xlink:
href=
"#lpath" fill=
"none" stroke=
"blue" stroke-width=
"2"/>
98 <text glyph-orientation-horizontal=
"270">
99 <textPath xlink:
href=
"#lpath">Batik
<tspan fill=
"red" dy=
"-10">is
</tspan><tspan dy=
"10"> Good
</tspan></textPath>