| 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 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="450" height="500" viewBox="0 0 450 500"> |
| 31 |
<title>Text Element Features</title> |
| 32 |
|
| 33 |
<!-- ============================================================= --> |
| 34 |
<!-- Test content --> |
| 35 |
<!-- ============================================================= --> |
| 36 |
|
| 37 |
<defs> |
| 38 |
<filter id="blur" filterUnits="userSpaceOnUse" x="0" y="-80" width="200" height="100" filterRes="200"> |
| 39 |
<feGaussianBlur stdDeviation="2 2" x="0" y="-80" width="200" height="100"/> |
| 40 |
</filter> |
| 41 |
</defs> |
| 42 |
|
| 43 |
<g id="testContent"> |
| 44 |
<text class="title" x="50%" y="10%" font-size="15" text-anchor="middle" > |
| 45 |
Text Element Features</text> |
| 46 |
<g font-family="dialog" font-size="15" |
| 47 |
text-anchor="start" fill="MidnightBlue"> |
| 48 |
<text x="10%" y="20%"> |
| 49 |
Text can change |
| 50 |
<tspan font-size="30">size,</tspan> |
| 51 |
<tspan font-size="20" font-family="Serif">typeface,</tspan> |
| 52 |
<tspan fill="green">color,</tspan> |
| 53 |
or |
| 54 |
<tspan fill="none" font-style="oblique" stroke="red" stroke-width="1">style</tspan> |
| 55 |
</text> |
| 56 |
<text fill="MidnightBlue" x="10%" y="25%"> |
| 57 |
within a single text element. |
| 58 |
</text> |
| 59 |
<text x="10%" y="35%">Styling features include |
| 60 |
<tspan font-weight="bold">weight,</tspan> |
| 61 |
<tspan font-style="oblique">posture,</tspan> and |
| 62 |
<tspan font-family="serif">typeface.</tspan> |
| 63 |
</text> |
| 64 |
<rect x="10%" y="40%" width="45%" height="10%" fill="DodgerBlue"/> |
| 65 |
<text x="10%" y="45%"> |
| 66 |
Graphics attributes such as |
| 67 |
<tspan fill="red" opacity="0.3">opacity</tspan> can be applied. |
| 68 |
</text> |
| 69 |
<text x="10%" y="55%">"text decoration" can include |
| 70 |
<tspan text-decoration="underline">underline,</tspan> |
| 71 |
<tspan text-decoration="overline">overline,</tspan> and |
| 72 |
</text> |
| 73 |
<text x="10%" y="60%"> |
| 74 |
<tspan text-decoration="line-through">strikethrough.</tspan> |
| 75 |
<tspan baseline-shift="super" font-size="75%">super</tspan>-and- |
| 76 |
<tspan baseline-shift="sub" font-size="75%">sub</tspan>-scripts |
| 77 |
are available.</text> |
| 78 |
<text x="10%" y="65%">Baseline can also be shifted |
| 79 |
<tspan baseline-shift="50%" font-size="75%">up</tspan> and |
| 80 |
<tspan baseline-shift="-50%" font-size="75%">down</tspan> |
| 81 |
by percentage.</text> |
| 82 |
<text x="10%" y="75%" stroke-linecap="round" stroke-linejoin="round"> |
| 83 |
Various |
| 84 |
<tspan stroke="red" fill="none" stroke-width="0.5">outline |
| 85 |
</tspan>styles, |
| 86 |
<tspan stroke="red" stroke-width="0.5" fill="blue" >fill colors |
| 87 |
</tspan>and |
| 88 |
<tspan stroke="red" stroke-width="1" fill="blue" >thicknesses |
| 89 |
</tspan>can be |
| 90 |
</text> |
| 91 |
<text x="10%" y="80%">used, and the outline stroke can be |
| 92 |
<tspan stroke="black" fill="none" stroke-width="0.5" |
| 93 |
stroke-linecap="round" stroke-linejoin="round">rounded</tspan> |
| 94 |
or |
| 95 |
<tspan stroke="black" fill="none" stroke-width="0.5" |
| 96 |
stroke-linecap="square" stroke-linejoin="miter">mitered.</tspan> |
| 97 |
</text> |
| 98 |
<text x="10%" y="90%">Text elements also can be</text> |
| 99 |
<text x="10%" y="95%">filtered and transformed.</text> |
| 100 |
<g font-size="40" transform="translate(250, 475)"> |
| 101 |
<text x="0" y="0" filter="url(#blur)" fill="black" opacity="0.7" |
| 102 |
transform="skewX(40) translate(-6,-6)"> |
| 103 |
Shadow |
| 104 |
</text> |
| 105 |
<text x="0" y="0" stroke="black" stroke-width="0.2" fill="white"> |
| 106 |
Shadow |
| 107 |
</text> |
| 108 |
</g> |
| 109 |
</g> |
| 110 |
</g> |
| 111 |
|
| 112 |
<!-- ============================================================= --> |
| 113 |
<!-- Batik sample mark --> |
| 114 |
<!-- ============================================================= --> |
| 115 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 116 |
|
| 117 |
</svg> |