| 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 |
<!-- ====================================================================== --> |
| 25 |
<!-- Tests various text on a path --> |
| 26 |
<!-- --> |
| 27 |
<!-- @author [email protected] --> |
| 28 |
<!-- @version $Id$ --> |
| 29 |
<!-- ====================================================================== --> |
| 30 |
|
| 31 |
<svg id="body" width="450" height="500" viewBox="0 0 450 500" |
| 32 |
xmlns="http://www.w3.org/2000/svg" version="1.2" |
| 33 |
xmlns:xlink="http://www.w3.org/1999/xlink" > |
| 34 |
<title>Test of Text wrapping stuff.</title> |
| 35 |
|
| 36 |
<g id="content" > |
| 37 |
|
| 38 |
<text class="title" x="50%" y="40">Test of Text wrapping stuff</text> |
| 39 |
<!-- Space after size 40 'that' is aci 45 --> |
| 40 |
<rect x="17" y="80" width="200" height="200" fill="rgb(220,220,255)"/> |
| 41 |
<rect x="233" y="80" width="200" height="200" fill="rgb(220,220,255)"/> |
| 42 |
|
| 43 |
<rect x="17" y="290" width="200" height="150" fill="rgb(220,220,255)"/> |
| 44 |
<rect x="220" y="290" width="10" height="150" fill="rgb(220,220,255)"/> |
| 45 |
<rect x="233" y="290" width="200" height="150" fill="rgb(220,220,255)"/> |
| 46 |
|
| 47 |
<!-- |
| 48 |
<line x1="27" y1="70" x2="27" y2="490" stroke="grey" fill="none"/> |
| 49 |
<line x1="207" y1="70" x2="207" y2="490" stroke="grey" fill="none"/> |
| 50 |
<line x1="243" y1="70" x2="243" y2="490" stroke="grey" fill="none"/> |
| 51 |
<line x1="423" y1="70" x2="423" y2="490" stroke="grey" fill="none"/> |
| 52 |
--> |
| 53 |
|
| 54 |
<flowRoot font-size="20" xml:space="preserve"> |
| 55 |
<flowRegion> |
| 56 |
<rect x="17" y="80" width="200" height="200" visibility="hidden"/> |
| 57 |
<rect x="233" y="80" width="200" height="200" visibility="hidden"/> |
| 58 |
</flowRegion> |
| 59 |
|
| 60 |
<flowDiv> |
| 61 |
<flowPara indent="20" margin-bottom="10" >Some <flowSpan fill="darkred" direction="rtl" unicode-bidi="embed">(embedded bidi)</flowSpan> of text.</flowPara> |
| 62 |
<flowPara>Some text goes <flowSpan fill="blue" direction="rtl" unicode-bidi="bidi-override">(right to left)</flowSpan>, other text goes (left to right).</flowPara> |
| 63 |
<flowPara>arabic: ء​​أ​ؤ​إ​ئ​ا​ب​ة​ت​ث​ج​ح​خ​د​ذ​ر​ز​س​ش​ص​ض​ط​ظ​ع​ـ​ف​ق​ك​ل​م​ن​ه​و​ى​ِ​ٶ</flowPara> |
| 64 |
</flowDiv> |
| 65 |
</flowRoot> |
| 66 |
|
| 67 |
<flowRoot font-size="20" xml:space="preserve"> |
| 68 |
<flowRegion> |
| 69 |
<path d="M 17,290 v150 h200 v-150 z |
| 70 |
M 220,290 v150 h10 v-150 z |
| 71 |
M 233,290 v150 h200 v-150 z" visibility="hidden"/> |
| 72 |
</flowRegion> |
| 73 |
|
| 74 |
<flowDiv> |
| 75 |
<flowPara indent="20" margin-bottom="10" >Some <flowSpan fill="darkred" direction="rtl" unicode-bidi="embed">(embedded bidi)</flowSpan> of text.</flowPara> |
| 76 |
<flowPara>Some text goes <flowSpan fill="blue" direction="rtl" unicode-bidi="bidi-override">(right to left)</flowSpan>, other text goes (left to right).</flowPara> |
| 77 |
<flowPara>arabic: ء​​أ​ؤ​إ​ئ​ا​ب​ة​ت​ث​ج​ح​خ​د​ذ​ر​ز​س​ش​ص​ض​ط​ظ​ع​ـ​ف​ق​ك​ل​م​ن​ه​و​ى​ِ​ٶ</flowPara> |
| 78 |
</flowDiv> |
| 79 |
</flowRoot> |
| 80 |
</g> |
| 81 |
|
| 82 |
</svg> |