| 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 |
|
| 30 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 31 |
|
| 32 |
<svg width="450" height="500" viewBox="0 0 450 500" |
| 33 |
xmlns="http://www.w3.org/2000/svg" |
| 34 |
xmlns:xlink="http://www.w3.org/1999/xlink" > |
| 35 |
<title>Text Orientation Horizontal</title> |
| 36 |
|
| 37 |
<!-- ============================================================= --> |
| 38 |
<!-- Test content --> |
| 39 |
<!-- ============================================================= --> |
| 40 |
|
| 41 |
<defs> |
| 42 |
<path id="path" style="fill:none; stroke:blue;" |
| 43 |
d="M 20 40 C 40 20 60 0 80 20 C 100 40 120 60 140 40 |
| 44 |
C 160 20 180 20 180 20"/> |
| 45 |
<path id="lpath" style="fill:none; stroke:blue;" |
| 46 |
d="M 20 40 c 40 -20 80 -40 120 -20 c 40 20 80 40 120 20 |
| 47 |
c 40 -20 80 -20 80 -20"/> |
| 48 |
</defs> |
| 49 |
|
| 50 |
|
| 51 |
<text class="title" x="50%" y="30">Text Orientation Horizontal</text> |
| 52 |
|
| 53 |
<g id="testContent" style="font-family:Arial; font-size:24"> |
| 54 |
|
| 55 |
<line x1="50" x2="200" y1="80" y2="80" stroke="blue" stroke-width="2"/> |
| 56 |
<text x="50" y="80" glyph-orientation-horizontal="0">Batik is Good</text> |
| 57 |
|
| 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> |
| 62 |
</text> |
| 63 |
</g> |
| 64 |
|
| 65 |
<line x1="50" x2="400" y1="130" y2="130" stroke="blue" stroke-width="2"/> |
| 66 |
<text x="50" y="130" glyph-orientation-horizontal="90" |
| 67 |
>Batik is Good</text> |
| 68 |
|
| 69 |
<g transform="translate(30, 150)"> |
| 70 |
<use xlink:href="#lpath" fill="none" stroke="blue" stroke-width="2"/> |
| 71 |
<text glyph-orientation-horizontal="90"> |
| 72 |
<textPath xlink:href="#lpath">Batik <tspan fill="red" dy="-10">is</tspan><tspan dy="10"> Good</tspan></textPath> |
| 73 |
</text> |
| 74 |
|
| 75 |
</g> |
| 76 |
|
| 77 |
<line x1="50" x2="200" y1="240" y2="240" stroke="blue" stroke-width="2"/> |
| 78 |
<text x="50" y="240" glyph-orientation-horizontal="180" |
| 79 |
>Batik is Good</text> |
| 80 |
|
| 81 |
<g transform="translate(220, 220)"> |
| 82 |
<use xlink:href="#path" fill="none" stroke="blue" stroke-width="2"/> |
| 83 |
<text glyph-orientation-horizontal="180"> |
| 84 |
<textPath xlink:href="#path">Batik <tspan fill="red" dy="-10">is</tspan><tspan dy="10"> Good</tspan></textPath> |
| 85 |
</text> |
| 86 |
|
| 87 |
</g> |
| 88 |
|
| 89 |
<line x1="50" x2="400" y1="320" y2="320" stroke="blue" stroke-width="2"/> |
| 90 |
<text x="50" y="320" glyph-orientation-horizontal="270" |
| 91 |
>Batik is Good</text> |
| 92 |
|
| 93 |
<g transform="translate(30, 340)"> |
| 94 |
<use xlink:href="#lpath" fill="none" stroke="blue" stroke-width="2"/> |
| 95 |
<text glyph-orientation-horizontal="270"> |
| 96 |
<textPath xlink:href="#lpath">Batik <tspan fill="red" dy="-10">is</tspan><tspan dy="10"> Good</tspan></textPath> |
| 97 |
</text> |
| 98 |
|
| 99 |
</g> |
| 100 |
</g> |
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
</svg> |