| 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 |
<!-- Tests various text on a path --> |
| 25 |
<!-- --> |
| 26 |
<!-- @author [email protected] --> |
| 27 |
<!-- @version $Id$ --> |
| 28 |
<!-- ====================================================================== --> |
| 29 |
|
| 30 |
<?xml-stylesheet type="text/css" href="extension.css" ?> |
| 31 |
|
| 32 |
<svg xmlns="http://www.w3.org/2000/svg" |
| 33 |
xmlns:xlink="http://www.w3.org/1999/xlink" |
| 34 |
id="body" width="450" height="500" viewBox="0 0 450 500"> |
| 35 |
|
| 36 |
<title>Test of Text vertical-align.</title> |
| 37 |
|
| 38 |
<g id="content" > |
| 39 |
<text class="title" x="50%" y="40">Test of Text vertical-align</text> |
| 40 |
|
| 41 |
<g font-family="serif" transform="translate(0,60)"> |
| 42 |
<g fill="rgb(220,220,255)"> |
| 43 |
<rect x="12.5" y="0" width="125" height="36"/> |
| 44 |
<rect x="162.5" y="0" width="125" height="36"/> |
| 45 |
<rect x="312.5" y="0" width="125" height="36"/> |
| 46 |
</g> |
| 47 |
|
| 48 |
<flowText xmlns="http://xml.apache.org/batik/ext" |
| 49 |
font-size="24" xml:space="preserve"> |
| 50 |
<flowRegion vertical-align="top"> |
| 51 |
<rect x="12.5" y="0" width="125" height="36"/> |
| 52 |
</flowRegion> |
| 53 |
<flowRegion vertical-align="middle"> |
| 54 |
<rect x="162.5" y="0" width="125" height="36"/> |
| 55 |
</flowRegion> |
| 56 |
<flowRegion vertical-align="bottom"> |
| 57 |
<rect x="312.5" y="0" width="125" height="36"/> |
| 58 |
</flowRegion> |
| 59 |
<flowDiv> |
| 60 |
<flowRegionBreak justification="middle" |
| 61 |
>Try top</flowRegionBreak> |
| 62 |
<flowRegionBreak justification="middle" |
| 63 |
>Try middle</flowRegionBreak> |
| 64 |
<flowRegionBreak justification="middle" |
| 65 |
>Try bottom</flowRegionBreak> |
| 66 |
</flowDiv> |
| 67 |
</flowText> |
| 68 |
</g> |
| 69 |
|
| 70 |
<g font-family="serif" transform="translate(0,120)" > |
| 71 |
<g fill="rgb(220,220,255)"> |
| 72 |
<rect x="12.5" y="0" width="125" height="36"/> |
| 73 |
<rect x="12.5" y="40" width="125" height="36"/> |
| 74 |
<rect x="162.5" y="0" width="125" height="36"/> |
| 75 |
<rect x="162.5" y="40" width="125" height="36"/> |
| 76 |
<rect x="312.5" y="0" width="125" height="36"/> |
| 77 |
<rect x="312.5" y="40" width="125" height="36"/> |
| 78 |
</g> |
| 79 |
|
| 80 |
<flowText xmlns="http://xml.apache.org/batik/ext" |
| 81 |
font-size="24" xml:space="preserve"> |
| 82 |
<flowRegion vertical-align="top"> |
| 83 |
<rect x="12.5" y="0" width="125" height="36"/> |
| 84 |
<rect x="12.5" y="40" width="125" height="36"/> |
| 85 |
</flowRegion> |
| 86 |
<flowRegion vertical-align="middle"> |
| 87 |
<rect x="162.5" y="0" width="125" height="36"/> |
| 88 |
<rect x="162.5" y="40" width="125" height="36"/> |
| 89 |
</flowRegion> |
| 90 |
<flowRegion vertical-align="bottom"> |
| 91 |
<rect x="312.5" y="0" width="125" height="36"/> |
| 92 |
<rect x="312.5" y="40" width="125" height="36"/> |
| 93 |
</flowRegion> |
| 94 |
<flowDiv> |
| 95 |
<flowRegionBreak justification="middle" |
| 96 |
>Try top two lines</flowRegionBreak> |
| 97 |
<flowRegionBreak justification="middle" |
| 98 |
>Middle two lines</flowRegionBreak> |
| 99 |
<flowRegionBreak justification="middle" |
| 100 |
>Bottom two lines</flowRegionBreak> |
| 101 |
</flowDiv> |
| 102 |
</flowText> |
| 103 |
</g> |
| 104 |
|
| 105 |
<g font-family="serif" transform="translate(0,220)" > |
| 106 |
<g fill="rgb(220,220,255)"> |
| 107 |
<rect x="12.5" y="0" width="125" height="72"/> |
| 108 |
<rect x="162.5" y="0" width="125" height="72"/> |
| 109 |
<rect x="312.5" y="0" width="125" height="72"/> |
| 110 |
</g> |
| 111 |
|
| 112 |
<flowText xmlns="http://xml.apache.org/batik/ext" |
| 113 |
font-size="24" xml:space="preserve"> |
| 114 |
<flowRegion vertical-align="top"> |
| 115 |
<rect x="12.5" y="0" width="125" height="72"/> |
| 116 |
</flowRegion> |
| 117 |
<flowRegion vertical-align="middle"> |
| 118 |
<rect x="162.5" y="0" width="125" height="72"/> |
| 119 |
</flowRegion> |
| 120 |
<flowRegion vertical-align="bottom"> |
| 121 |
<rect x="312.5" y="0" width="125" height="72"/> |
| 122 |
</flowRegion> |
| 123 |
<flowDiv> |
| 124 |
<flowRegionBreak justification="middle" |
| 125 |
>Try top two lines</flowRegionBreak> |
| 126 |
<flowRegionBreak justification="middle" |
| 127 |
>Middle two lines</flowRegionBreak> |
| 128 |
<flowRegionBreak justification="middle" |
| 129 |
>Bottom two lines</flowRegionBreak> |
| 130 |
</flowDiv> |
| 131 |
</flowText> |
| 132 |
</g> |
| 133 |
|
| 134 |
<g font-family="serif" transform="translate(0,320)" > |
| 135 |
<g fill="rgb(220,220,255)"> |
| 136 |
<rect x="12.5" y="0" width="125" height="72"/> |
| 137 |
<rect x="162.5" y="0" width="125" height="72"/> |
| 138 |
<rect x="312.5" y="0" width="125" height="72"/> |
| 139 |
</g> |
| 140 |
|
| 141 |
<flowText xmlns="http://xml.apache.org/batik/ext" |
| 142 |
font-size="24" xml:space="preserve"> |
| 143 |
<flowRegion vertical-align="top"> |
| 144 |
<rect x="12.5" y="0" width="125" height="72"/> |
| 145 |
</flowRegion> |
| 146 |
<flowRegion vertical-align="middle"> |
| 147 |
<rect x="162.5" y="0" width="125" height="72"/> |
| 148 |
</flowRegion> |
| 149 |
<flowRegion vertical-align="bottom"> |
| 150 |
<rect x="312.5" y="0" width="125" height="72"/> |
| 151 |
</flowRegion> |
| 152 |
<flowDiv> |
| 153 |
<flowPara justification="middle" |
| 154 |
>Try top</flowPara> |
| 155 |
<flowRegionBreak justification="middle" |
| 156 |
>two lines</flowRegionBreak> |
| 157 |
<flowPara justification="middle" |
| 158 |
>Middle</flowPara> |
| 159 |
<flowRegionBreak justification="middle" |
| 160 |
>two lines</flowRegionBreak> |
| 161 |
<flowPara justification="middle" |
| 162 |
>Bottom</flowPara> |
| 163 |
<flowRegionBreak justification="middle" |
| 164 |
>two lines</flowRegionBreak> |
| 165 |
</flowDiv> |
| 166 |
</flowText> |
| 167 |
</g> |
| 168 |
</g> |
| 169 |
|
| 170 |
<!-- check a totally empty flow text element. --> |
| 171 |
<g font-family="serif" transform="translate(0,405)" > |
| 172 |
<g fill="rgb(220,220,255)"> |
| 173 |
<rect x="12.5" y="0" width="125" height="72"/> |
| 174 |
</g> |
| 175 |
|
| 176 |
<flowText xmlns="http://xml.apache.org/batik/ext" |
| 177 |
font-size="24" xml:space="preserve"> |
| 178 |
<flowRegion vertical-align="top"> |
| 179 |
<rect x="12.5" y="0" width="125" height="72"/> |
| 180 |
</flowRegion> |
| 181 |
<flowPara/> |
| 182 |
</flowText> |
| 183 |
</g> |
| 184 |
|
| 185 |
<!-- ============================================================= --> |
| 186 |
<!-- Batik sample mark --> |
| 187 |
<!-- ============================================================= --> |
| 188 |
<use xlink:href="../batikLogo.svg#Batik_Tag_Box" /> |
| 189 |
</svg> |