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" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- ========================================================================= -->
<!-- Test the x,dx and y,dy attributes -->
<!-- -->
<!-- @author tkormann@ilog.fr -->
<!-- @version $Id$ -->
<!-- ========================================================================= -->
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
<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">
<title>Text Position</title>
<style type="text/css"><![CDATA[
.info {
font-family: Arial;
font-size: 10;
}
]]>
</style>
<!-- ============================================================= -->
<!-- Test content -->
<!-- ============================================================= -->
<text class="title" x="50%" y="30">Text Position</text>
<g id="testContent" style="font-family:Arial; font-size:24">
<!-- ################################################################ -->
<text x="50" y="80">Batik</text>
<text x="50" y="100" class="info"><text x="100" y="80"></text>
<text x="240" y="80" style="letter-spacing:20">Batik</text>
<text x="240" y="100" class="info"><text x="240" y="80" letter-spacing="20"></text>
<text x="50 70 90 110 130" y="140">Batik</text>
<text x="50" y="160" class="info"><text x="50 70 90 110 130" y="140"></text>
<text dx="240 20 20 20 20" y="140">Batik</text>
<text x="240" y="160" class="info"><text dx="240 20 20 20 20" y="140"></text>
<!-- ################################################################ -->
<text><tspan x="50" y="200">Batik</tspan></text>
<text x="50" y="220" class="info"><tspan x="50" y="200"></text>
<text><tspan x="240" y="200" style="letter-spacing:20">Batik</tspan></text>
<text><tspan x="240" y="220" class="info"><tspan x="240" y="200" letter-spacing="20"></tspan></text>
<text><tspan x="50 70 90 110 130" y="260">Batik</tspan></text>
<text x="50" y="280" class="info"><tspan x="50 70 90 110 130" y="260"></text>
<text><tspan dx="240 20 20 20 20" y="260">Batik</tspan></text>
<text x="240" y="280" class="info"><tspan dx="240 20 20 20 20" y="260"></text>
<!-- ################################################################ -->
<text><tspan x="50 60 70 80 90" dx="0 10 20 30 40" y="320">Batik</tspan></text>
<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>
<text><tspan x="240" dx="0 10 10 10 10" y="320" style="letter-spacing:10">Batik</tspan></text>
<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>
<!-- ################################################################ -->
<text><tspan x="50" letter-spacing="10" y="380">Batik</tspan><tspan x="10" y="380"/></text>
<text x="50" y="400" class="info">Empty Trailing tspan</text>
<text><tspan x="200" y="380"/><tspan x="240" letter-spacing="20" y="380">Batik</tspan></text>
<text x="240" y="400" class="info">Empty Preceeding tspan</text>
</g>
<!-- ============================================================= -->
<!-- Batik sample mark -->
<!-- ============================================================= -->
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
</svg>
|