| 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 |
<!-- Test the x,dx and y,dy attributes --> |
| 25 |
<!-- --> |
| 26 |
<!-- @author [email protected] --> |
| 27 |
<!-- @version $Id$ --> |
| 28 |
<!-- ========================================================================= --> |
| 29 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 30 |
|
| 31 |
<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"> |
| 32 |
<title>Text Position</title> |
| 33 |
|
| 34 |
<style type="text/css"><![CDATA[ |
| 35 |
.info { |
| 36 |
font-family: Arial; |
| 37 |
font-size: 10; |
| 38 |
} |
| 39 |
]]> |
| 40 |
</style> |
| 41 |
|
| 42 |
<!-- ============================================================= --> |
| 43 |
<!-- Test content --> |
| 44 |
<!-- ============================================================= --> |
| 45 |
|
| 46 |
<text class="title" x="50%" y="30">Text Position</text> |
| 47 |
|
| 48 |
<g id="testContent" style="font-family:Arial; font-size:24"> |
| 49 |
|
| 50 |
<!-- ################################################################ --> |
| 51 |
|
| 52 |
<text x="50" y="80">Batik</text> |
| 53 |
<text x="50" y="100" class="info"><text x="100" y="80"></text> |
| 54 |
|
| 55 |
<text x="240" y="80" style="letter-spacing:20">Batik</text> |
| 56 |
<text x="240" y="100" class="info"><text x="240" y="80" letter-spacing="20"></text> |
| 57 |
|
| 58 |
|
| 59 |
<text x="50 70 90 110 130" y="140">Batik</text> |
| 60 |
<text x="50" y="160" class="info"><text x="50 70 90 110 130" y="140"></text> |
| 61 |
|
| 62 |
<text dx="240 20 20 20 20" y="140">Batik</text> |
| 63 |
<text x="240" y="160" class="info"><text dx="240 20 20 20 20" y="140"></text> |
| 64 |
|
| 65 |
<!-- ################################################################ --> |
| 66 |
|
| 67 |
<text><tspan x="50" y="200">Batik</tspan></text> |
| 68 |
<text x="50" y="220" class="info"><tspan x="50" y="200"></text> |
| 69 |
|
| 70 |
<text><tspan x="240" y="200" style="letter-spacing:20">Batik</tspan></text> |
| 71 |
<text><tspan x="240" y="220" class="info"><tspan x="240" y="200" letter-spacing="20"></tspan></text> |
| 72 |
|
| 73 |
|
| 74 |
<text><tspan x="50 70 90 110 130" y="260">Batik</tspan></text> |
| 75 |
<text x="50" y="280" class="info"><tspan x="50 70 90 110 130" y="260"></text> |
| 76 |
|
| 77 |
<text><tspan dx="240 20 20 20 20" y="260">Batik</tspan></text> |
| 78 |
<text x="240" y="280" class="info"><tspan dx="240 20 20 20 20" y="260"></text> |
| 79 |
|
| 80 |
<!-- ################################################################ --> |
| 81 |
|
| 82 |
<text><tspan x="50 60 70 80 90" dx="0 10 20 30 40" y="320">Batik</tspan></text> |
| 83 |
<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> |
| 84 |
|
| 85 |
|
| 86 |
<text><tspan x="240" dx="0 10 10 10 10" y="320" style="letter-spacing:10">Batik</tspan></text> |
| 87 |
<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> |
| 88 |
|
| 89 |
|
| 90 |
<!-- ################################################################ --> |
| 91 |
|
| 92 |
<text><tspan x="50" letter-spacing="10" y="380">Batik</tspan><tspan x="10" y="380"/></text> |
| 93 |
<text x="50" y="400" class="info">Empty Trailing tspan</text> |
| 94 |
|
| 95 |
|
| 96 |
<text><tspan x="200" y="380"/><tspan x="240" letter-spacing="20" y="380">Batik</tspan></text> |
| 97 |
<text x="240" y="400" class="info">Empty Preceeding tspan</text> |
| 98 |
|
| 99 |
|
| 100 |
</g> |
| 101 |
|
| 102 |
<!-- ============================================================= --> |
| 103 |
<!-- Batik sample mark --> |
| 104 |
<!-- ============================================================= --> |
| 105 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 106 |
|
| 107 |
</svg> |
| 108 |
|