| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 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 |
<!-- Vertical <text> --> |
| 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" id="body" width="450" height="500" viewBox="0 0 450 500"> |
| 32 |
|
| 33 |
<title>Vertical Text Test</title> |
| 34 |
|
| 35 |
<defs> |
| 36 |
<path id="Path1" style="fill:none; stroke:blue;" transform="scale(0.15,0.15)" |
| 37 |
d="M 100 200 C 200 100 300 0 400 100 C 500 200 600 300 700 200 C 800 100 900 0 1000 100 |
| 38 |
C 1100 200 1200 300 1300 200 C 1400 100 1500 0 1600 100 |
| 39 |
C 1700 200 1800 300 1900 200 C 2000 100 2100 0 2200 100"/> |
| 40 |
</defs> |
| 41 |
|
| 42 |
<g id="content"> |
| 43 |
|
| 44 |
<text class="title" x="50%" y="40">Vertical Text Test</text> |
| 45 |
|
| 46 |
<line x1="20" y1="75" x2="430" y2="75" stroke="black"/> |
| 47 |
|
| 48 |
<g opacity="0.5"> |
| 49 |
<circle cx="50" cy="75" r="2" fill="red" /> |
| 50 |
<circle cx="100" cy="75" r="2" fill="red" /> |
| 51 |
<circle cx="150" cy="75" r="2" fill="red" /> |
| 52 |
<circle cx="200" cy="75" r="2" fill="red" /> |
| 53 |
<circle cx="250" cy="75" r="2" fill="red" /> |
| 54 |
<circle cx="300" cy="75" r="2" fill="red" /> |
| 55 |
<circle cx="350" cy="75" r="2" fill="red" /> |
| 56 |
<circle cx="400" cy="75" r="2" fill="red" /> |
| 57 |
|
| 58 |
<line x1="50" y1="75" x2="50" y2="450" stroke="red" /> |
| 59 |
<line x1="100" y1="75" x2="100" y2="450" stroke="red" /> |
| 60 |
<line x1="150" y1="75" x2="150" y2="450" stroke="red" /> |
| 61 |
<line x1="200" y1="75" x2="200" y2="450" stroke="red" /> |
| 62 |
<line x1="250" y1="75" x2="250" y2="450" stroke="red" /> |
| 63 |
<line x1="300" y1="75" x2="300" y2="450" stroke="red" /> |
| 64 |
<line x1="350" y1="75" x2="350" y2="450" stroke="red" /> |
| 65 |
<line x1="400" y1="75" x2="400" y2="450" stroke="red" /> |
| 66 |
</g> |
| 67 |
|
| 68 |
|
| 69 |
<text x="50" y="75" writing-mode="tb" font-size="15">Writing top to bottom画像</text> |
| 70 |
<text x="100" y="75" glyph-orientation-vertical="auto" writing-mode="tb" font-size="15">Glyph Orientation:auto画像</text> |
| 71 |
<text id="orient0" x="150" y="75" glyph-orientation-vertical="0deg" |
| 72 |
writing-mode="tb" font-size="15">Glyph Orientation:0画像</text> |
| 73 |
<text id="orient90" x="200" y="75" glyph-orientation-vertical="90deg" |
| 74 |
writing-mode="tb" font-size="15">Glyph Orientation:90画像</text> |
| 75 |
<text id="orient180" x="250" y="75" glyph-orientation-vertical="180deg" |
| 76 |
writing-mode="tb" font-size="15">Glyph Orientation:180画像</text> |
| 77 |
<text id="orient270" x="300" y="75" glyph-orientation-vertical="270deg" |
| 78 |
writing-mode="tb" font-size="15">Glyph Orientation:270画像</text> |
| 79 |
<text x="350" y="75" writing-mode="tb" font-size="15">Embedded <tspan fill="red"><tspan></tspan> element</text> |
| 80 |
<text x="400" y="75" writing-mode="tb" font-size="15">Embedded <tspan fill="blue" glyph-orientation-vertical="0deg">orientated</tspan> element</text> |
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
<g transform="translate(40,450)"> |
| 86 |
<use xlink:href="#Path1" style="fill:none; stroke:blue; stroke-width:2"/> |
| 87 |
<text font-size="12" writing-mode="tb" glyph-orientation-vertical="0deg"> |
| 88 |
<textPath xlink:href="#Path1">Vertical text on a Path画像</textPath> |
| 89 |
</text> |
| 90 |
</g> |
| 91 |
|
| 92 |
</g> |
| 93 |
|
| 94 |
<!-- ============================================================= --> |
| 95 |
<!-- Batik sample mark --> |
| 96 |
<!-- ============================================================= --> |
| 97 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 98 |
|
| 99 |
</svg> |