| 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 description here --> |
| 25 |
<!-- --> |
| 26 |
<!-- @author [email protected] --> |
| 27 |
<!-- @version $Id$ --> |
| 28 |
<!-- ========================================================================= --> |
| 29 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 30 |
|
| 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 |
|
| 35 |
<title>Text Properties</title> |
| 36 |
|
| 37 |
<!-- ============================================================= --> |
| 38 |
<!-- Test content --> |
| 39 |
<!-- ============================================================= --> |
| 40 |
|
| 41 |
<defs> |
| 42 |
|
| 43 |
<style type="text/css"><![CDATA[ |
| 44 |
.Caption { font-size: 8; font-family: dialog; font-weight: normal; |
| 45 |
font-style: normal; stroke: none; stroke-width: 0; |
| 46 |
fill: black } |
| 47 |
text > tspan { fill: blue; } |
| 48 |
text > tspan > tspan { fill: purple; }]]> |
| 49 |
</style> |
| 50 |
</defs> |
| 51 |
|
| 52 |
<g id="testContent"> |
| 53 |
<text class="title" x="50%" y="40" font-size="15" > |
| 54 |
Text display and visibility.</text> |
| 55 |
|
| 56 |
<text x="50%" y="74" text-anchor="middle" |
| 57 |
>Visibility on text & tspans</text> |
| 58 |
<text x="50%" y="200" text-anchor="middle" |
| 59 |
>Display on text & tspans</text> |
| 60 |
|
| 61 |
<g stroke="black" stroke-width="1"> |
| 62 |
<rect x="12.5" y="82" width="425" height="25" fill="#EEE"/> |
| 63 |
<rect x="12.5" y="107" width="425" height="25" fill="#CCC"/> |
| 64 |
<rect x="12.5" y="132" width="425" height="25" fill="#EEE"/> |
| 65 |
<rect x="12.5" y="157" width="425" height="25" fill="#CCC"/> |
| 66 |
<line x1="340" x2="340" y1="82" y2="182"/> |
| 67 |
|
| 68 |
<rect x="12.5" y="207" width="425" height="25" fill="#EEE"/> |
| 69 |
<rect x="12.5" y="232" width="425" height="25" fill="#CCC"/> |
| 70 |
<rect x="12.5" y="257" width="425" height="25" fill="#EEE"/> |
| 71 |
<rect x="12.5" y="282" width="425" height="25" fill="#CCC"/> |
| 72 |
<rect x="12.5" y="307" width="425" height="25" fill="#EEE"/> |
| 73 |
<line x1="340" x2="340" y1="207" y2="332"/> |
| 74 |
</g> |
| 75 |
|
| 76 |
<text class="Caption" x="360" y="97" >vis, vis, vis</text> |
| 77 |
<text class="Caption" x="360" y="122">vis, hid, vis</text> |
| 78 |
<text class="Caption" x="360" y="147">vis, hid, hid</text> |
| 79 |
<text class="Caption" x="360" y="172">hid, vis, hid</text> |
| 80 |
|
| 81 |
<text class="Caption" x="360" y="223">inline, inline, inline</text> |
| 82 |
<text class="Caption" x="360" y="248">inline, inline, none</text> |
| 83 |
<text class="Caption" x="360" y="273">inline, none, inline</text> |
| 84 |
<text class="Caption" x="360" y="298">inline, none, none</text> |
| 85 |
<text class="Caption" x="360" y="323">none, inline, none</text> |
| 86 |
|
| 87 |
<g transform="scale(1.25), translate(0, 10)"> |
| 88 |
<text x="20" y="70">Text <tspan>tspan 1 <tspan> tspan 2</tspan> more span 1</tspan> finish text</text> |
| 89 |
|
| 90 |
<text x="20" y="90">Text <tspan visibility="hidden">tspan 1 <tspan visibility="visible"> tspan 2</tspan> more span 1</tspan> finish text</text> |
| 91 |
|
| 92 |
<text x="20" y="110">Text <tspan visibility="hidden">tspan 1 <tspan visibility="hidden"> tspan 2</tspan> more span 1</tspan> finish text</text> |
| 93 |
|
| 94 |
<text x="20" y="130" visibility="hidden">Text <tspan visibility="visible">tspan 1 <tspan visibility="hidden"> tspan 2</tspan> more span 1</tspan> finish text</text> |
| 95 |
|
| 96 |
|
| 97 |
<text x="20" y="170">Text <tspan>tspan 1 <tspan>tspan 2 </tspan>more span 1</tspan> finish text</text> |
| 98 |
<text x="20" y="190">Text <tspan display="inline">tspan 1 <tspan display="none"> tspan 2</tspan> more span 1</tspan> finish text</text> |
| 99 |
<text x="20" y="210">Text <tspan display="none">tspan 1 <tspan display="inline"> tspan 2</tspan> more span 1</tspan> finish text</text> |
| 100 |
<text x="20" y="230">Text <tspan display="none">tspan 1 <tspan display="none"> tspan 2</tspan> more span 1</tspan> finish text</text> |
| 101 |
<text x="20" y="250" display="none">Text <tspan display="inline">tspan 1 <tspan display="none"> tspan 2</tspan> more span 1</tspan> finish text</text> |
| 102 |
</g> |
| 103 |
</g> |
| 104 |
|
| 105 |
<!-- ============================================================= --> |
| 106 |
<!-- Batik sample mark --> |
| 107 |
<!-- ============================================================= --> |
| 108 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 109 |
|
| 110 |
</svg> |