| 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 handling of text decoration, especially in the presence of --> |
| 25 |
<!-- of dx, dy attributes. --> |
| 26 |
<!-- @author [email protected] --> |
| 27 |
<!-- @version $Id$ --> |
| 28 |
<!-- ====================================================================== --> |
| 29 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 30 |
|
| 31 |
<svg id="body" 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 Decoration with dx,dy Tests</title> |
| 36 |
<text class="title" x="50%" y="40" |
| 37 |
>Text Decoration with dx, dy tests</text> |
| 38 |
|
| 39 |
<!-- <rect x="0" y="0" width="100%" height="100%" fill="lightgrey"/> --> |
| 40 |
<g transform="translate(0, 50)" |
| 41 |
fill="rgb(0,0,0)" font-family="Lucida Sans Typewriter" font-size="15.0"> |
| 42 |
<text x="31.0" y="24.0" text-decoration="underline" |
| 43 |
>This is a text<tspan x="31.0" dy="1.2em" |
| 44 |
>that covers multiple</tspan><tspan x="31.0" dy="1.2em" |
| 45 |
>lines</tspan></text> |
| 46 |
|
| 47 |
<text x="231.0" y="24" text-decoration="underline" |
| 48 |
>This is a text<tspan x="231.0" y="41" |
| 49 |
>that covers multiple</tspan><tspan x="231" y="60" |
| 50 |
>lines</tspan></text> |
| 51 |
|
| 52 |
<text x="31.0" y="100" text-decoration="line-through" |
| 53 |
>Text <tspan dy="-5">that</tspan> <tspan dy="10">shifts</tspan></text> |
| 54 |
|
| 55 |
<text x="31.0" y="130" |
| 56 |
>Text <tspan dy="-5" text-decoration="line-through" |
| 57 |
>that</tspan> <tspan dy="10">shifts</tspan></text> |
| 58 |
|
| 59 |
<text x="31.0" y="160" |
| 60 |
>Text <tspan dy="-5">that</tspan> <tspan |
| 61 |
dy="10" text-decoration="line-through">shifts</tspan></text> |
| 62 |
|
| 63 |
<text x="31.0" y="200" |
| 64 |
>Text <tspan dy="-5">that</tspan> <tspan |
| 65 |
dy="-5" text-decoration="line-through">shifts</tspan></text> |
| 66 |
|
| 67 |
<text x="231.0" y="100" text-decoration="overline" |
| 68 |
>Text <tspan dy="-5">that</tspan> <tspan dy="10">shifts</tspan></text> |
| 69 |
|
| 70 |
<text x="231.0" y="130" |
| 71 |
>Text <tspan dy="-5" text-decoration="overline" |
| 72 |
>that</tspan> <tspan dy="10">shifts</tspan></text> |
| 73 |
|
| 74 |
<text x="231.0" y="160" |
| 75 |
>Text <tspan dy="-5">that</tspan> <tspan |
| 76 |
dy="10" text-decoration="overline">shifts</tspan></text> |
| 77 |
|
| 78 |
<text x="231.0" y="200" |
| 79 |
>Text <tspan dy="-5">that</tspan> <tspan |
| 80 |
dy="-5" text-decoration="overline">shifts</tspan></text> |
| 81 |
|
| 82 |
<text x="31.0" y="240" text-decoration="underline" |
| 83 |
>Text <tspan dy="-5">that</tspan> <tspan dy="10">shifts</tspan></text> |
| 84 |
|
| 85 |
<text x="31.0" y="270" |
| 86 |
>Text <tspan dy="-5" text-decoration="underline" |
| 87 |
>that</tspan> <tspan dy="10">shifts</tspan></text> |
| 88 |
|
| 89 |
<text x="31.0" y="300" |
| 90 |
>Text <tspan dy="-5">that</tspan> <tspan |
| 91 |
dy="10" text-decoration="underline">shifts</tspan></text> |
| 92 |
|
| 93 |
<text x="31.0" y="330" |
| 94 |
>Text <tspan dy="-5">that</tspan> <tspan |
| 95 |
dy="-5" text-decoration="underline">shifts</tspan></text> |
| 96 |
|
| 97 |
|
| 98 |
<text x="231.0" y="240" text-decoration="underline" fill="blue" |
| 99 |
><tspan fill="black" stroke="none" |
| 100 |
>Text <tspan dy="-5">that</tspan> <tspan dy="10" |
| 101 |
>shifts</tspan></tspan></text> |
| 102 |
|
| 103 |
<text x="231.0" y="270" text-decoration="underline" fill="blue" |
| 104 |
><tspan fill="black" |
| 105 |
>Text <tspan dy="-5" text-decoration="line-through" fill="red" |
| 106 |
><tspan fill="black">that</tspan></tspan> <tspan dy="10" |
| 107 |
>shifts</tspan></tspan></text> |
| 108 |
|
| 109 |
<text x="231.0" y="300" text-decoration="underline" fill="blue" |
| 110 |
><tspan fill="black" |
| 111 |
>Text <tspan dy="-5">that</tspan> <tspan |
| 112 |
dy="10" text-decoration="underline" fill="red"> |
| 113 |
<tspan fill="black">shifts</tspan></tspan></tspan></text> |
| 114 |
|
| 115 |
<text x="231.0" y="330" text-decoration="underline" fill="blue" |
| 116 |
><tspan fill="black" |
| 117 |
>Text <tspan dy="-5" text-decoration="line-through" fill="red" |
| 118 |
><tspan fill="black" |
| 119 |
>that <tspan dy="10" text-decoration="overline" fill="green" |
| 120 |
><tspan fill="black" |
| 121 |
>shifts</tspan></tspan></tspan></tspan></tspan></text> |
| 122 |
|
| 123 |
<text x="131.0" y="370" text-decoration="underline" fill="blue" |
| 124 |
><tspan fill="black">Text <tspan y="360">that</tspan> |
| 125 |
<tspan y="375" >shifts</tspan></tspan></text> |
| 126 |
|
| 127 |
</g> |
| 128 |
</svg> |
| 129 |
|