| 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 |
<!-- text effects --> |
| 25 |
<!-- --> |
| 26 |
<!-- @author [email protected] --> |
| 27 |
<!-- @version $Id$ --> |
| 28 |
<!-- ========================================================================= --> |
| 29 |
|
| 30 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 31 |
|
| 32 |
<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"> |
| 33 |
<title>Mix text transformation</title> |
| 34 |
|
| 35 |
<!-- ============================================================= --> |
| 36 |
<!-- Test content --> |
| 37 |
<!-- ============================================================= --> |
| 38 |
<g id="testContent"> |
| 39 |
<text x="225" y="30" class="title">Gradient and filter on text and tspan</text> |
| 40 |
<text x="225" y="50" class="title">(Using System font and SVG font)</text> |
| 41 |
|
| 42 |
|
| 43 |
<defs> |
| 44 |
|
| 45 |
<font id="SVGArial" horiz-adv-x="904" > |
| 46 |
<font-face |
| 47 |
font-family="SVGArial" |
| 48 |
units-per-em="2048" |
| 49 |
panose-1="2 11 6 4 2 2 2 2 2 4" |
| 50 |
ascent="1854" |
| 51 |
descent="-434" /> |
| 52 |
|
| 53 |
<missing-glyph horiz-adv-x="1536" d="M256 0V1280H1280V0H256ZM288 32H1248V1248H288V32Z" /> |
| 54 |
|
| 55 |
<glyph unicode="A" glyph-name="A" horiz-adv-x="1366" d="M-3 0L560 1466H769L1369 0H1148L977 444H364L203 0H-3ZM420 602H917L764 1008Q694 1193 660 1312Q632 1171 581 1032L420 602Z" /> |
| 56 |
<glyph unicode="B" glyph-name="B" horiz-adv-x="1366" d="M150 0V1466H700Q868 1466 969 1422T1128 1285T1186 1091Q1186 997 1135 914T981 780Q1114 741 1185 647T1257 425Q1257 322 1214 234T1106 97T946 25T709 0H150ZM344 850H661Q790 850 846 867Q920 889 |
| 57 |
957 940T995 1068Q995 1141 960 1196T860 1272T637 1293H344V850ZM344 173H709Q803 173 841 180Q908 192 953 220T1027 301T1056 425Q1056 507 1014 567T898 652T683 677H344V173Z" /> |
| 58 |
<glyph unicode="I" glyph-name="I" horiz-adv-x="569" d="M191 0V1466H385V0H191Z" /> |
| 59 |
<glyph unicode="K" glyph-name="K" horiz-adv-x="1366" d="M150 0V1466H344V739L1072 1466H1335L720 872L1362 0H1106L584 742L344 508V0H150Z" /> |
| 60 |
<glyph unicode="T" glyph-name="T" horiz-adv-x="1251" d="M531 0V1293H48V1466H1210V1293H725V0H531Z" /> |
| 61 |
</font> |
| 62 |
|
| 63 |
<linearGradient id="linearGradient"> |
| 64 |
<stop style="stop-color:gold" offset="0"/> |
| 65 |
<stop style="stop-color:orange" offset=".5"/> |
| 66 |
<stop style="stop-color:crimson" offset="1"/> |
| 67 |
</linearGradient> |
| 68 |
|
| 69 |
|
| 70 |
<radialGradient id="radialGradient"> |
| 71 |
<stop style="stop-color:gold" offset="0"/> |
| 72 |
<stop style="stop-color:orange" offset=".5"/> |
| 73 |
<stop style="stop-color:crimson" offset="1"/> |
| 74 |
</radialGradient> |
| 75 |
|
| 76 |
|
| 77 |
<filter id="dropShadow" filterUnits="objectBoundingBox"> |
| 78 |
<feGaussianBlur in="SourceGraphic" stdDeviation="2 2" /> |
| 79 |
</filter> |
| 80 |
|
| 81 |
</defs> |
| 82 |
|
| 83 |
<text x="120" y="160" style="fill:url(#linearGradient); font-size:40pt; font-family:Arial; text-anchor:middle"> |
| 84 |
B<tspan dy="-20" style="font-size:20pt">A</tspan>T<tspan style="font-size:30pt">I</tspan><tspan rotate="20">K</tspan> |
| 85 |
</text> |
| 86 |
|
| 87 |
<text x="330" y="160" style="fill:url(#linearGradient); font-family:SVGArial; font-size:40pt; text-anchor:middle"> |
| 88 |
B<tspan dy="-20" style="font-size:20pt">A</tspan>T<tspan style="font-size:30pt">I</tspan><tspan rotate="20">K</tspan> |
| 89 |
</text> |
| 90 |
|
| 91 |
<text x="120" y="260" style="stroke:url(#radialGradient); stroke-width:2; fill:none; font-size:40pt; text-anchor:middle; font-family:Arial"> |
| 92 |
B<tspan dy="-20" style="font-size:20pt">A</tspan>T<tspan style="font-size:30pt">I</tspan><tspan rotate="20">K</tspan> |
| 93 |
</text> |
| 94 |
|
| 95 |
<text x="330" y="260" style="stroke:url(#radialGradient); stroke-width:2; fill:none; font-family:SVGArial; font-size:40pt; text-anchor:middle"> |
| 96 |
B<tspan dy="-20" style="font-size:20pt">A</tspan>T<tspan style="font-size:30pt">I</tspan><tspan rotate="20">K</tspan> |
| 97 |
</text> |
| 98 |
|
| 99 |
<text x="120" y="360" style="filter:url(#dropShadow); fill:red; font-size:40pt; font-family:Arial; text-anchor:middle"> |
| 100 |
B<tspan dy="-20" style="font-size:20pt">A</tspan>T<tspan style="font-size:30pt">I</tspan><tspan rotate="20">K</tspan> |
| 101 |
</text> |
| 102 |
|
| 103 |
<text x="330" y="360" style="filter:url(#dropShadow); fill:red; font-family:SVGArial; font-size:40pt; text-anchor:middle"> |
| 104 |
B<tspan dy="-20" style="font-size:20pt">A</tspan>T<tspan style="font-size:30pt">I</tspan><tspan rotate="20">K</tspan> |
| 105 |
</text> |
| 106 |
|
| 107 |
<text x="120" y="400" style="font-size:12; filter:none; fill:black; text-anchor:middle">(System font)</text> |
| 108 |
<text x="330" y="400" style="font-size:12; filter:none; fill:black; text-anchor:middle">(SVG font)</text> |
| 109 |
|
| 110 |
</g> |
| 111 |
|
| 112 |
|
| 113 |
<!-- ============================================================= --> |
| 114 |
<!-- Batik sample mark --> |
| 115 |
<!-- ============================================================= --> |
| 116 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 117 |
|
| 118 |
</svg> |