Debian Codegraph @

samples/textRotateShadows.svg

raw
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 Licensed to the Apache Software Foundation (ASF) under one or more
7 contributor license agreements. See the NOTICE file distributed with
8 this work for additional information regarding copyright ownership.
9 The ASF licenses this file to You under the Apache License, Version 2.0
10 (the "License"); you may not use this file except in compliance with
11 the License. You may obtain a copy of the License at
12
13 http://www.apache.org/licenses/LICENSE-2.0
14
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 -->
21
22 <!-- ========================================================================= -->
23 <!-- Test description here -->
24 <!-- -->
25 <!-- @author [email protected] -->
26 <!-- @version $Id$ -->
27 <!-- ========================================================================= -->
28 <?xml-stylesheet type="text/css" href="./tests/resources/style/test.css" ?>
29
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 Rotation and Shadows</title>
32
33 <!-- ============================================================= -->
34 <!-- Test content -->
35 <!-- ============================================================= -->
36
37 <defs>
38 <clipPath id="textClip">
39 <text x="0" y="0" text-anchor="middle" font-size="400" font-family="Serif" id="text">batik</text>
40 </clipPath>
41 <g id="words">
42 <use xlink:href="#text"/>
43 <g clip-path="url(#textClip)">
44 <use xlink:href="#text" transform="scale(0.9) rotate(20) translate(-20,-15)" filter="url(#blur)" fill="black" opacity="0.4"/>
45 </g>
46 </g>
47 <filter id="blur" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox" x="-20%" y="-20%" width="120%" height="120%" >
48 <feGaussianBlur stdDeviation="3 2" x="-10%" y="-10%" width="120%" height="120%" />
49 </filter>
50 <g opacity="1.0" transform="translate(225, 250) rotate(-260)" id="rotatedText">
51 <g transform="scale(0.9) rotate(20)">
52 <use xlink:href="#words"/>
53 <g transform="scale(0.9) rotate(20)">
54 <use xlink:href="#words"/>
55 <g transform="scale(0.9) rotate(20)">
56 <use xlink:href="#words"/>
57 <g transform="scale(0.9) rotate(20)">
58 <use xlink:href="#words"/>
59 <g transform="scale(0.9) rotate(20)">
60 <use xlink:href="#words"/>
61 <g transform="scale(0.9) rotate(20)">
62 <use xlink:href="#words"/>
63 <g transform="scale(0.9) rotate(20)">
64 <use xlink:href="#words"/>
65 <g transform="scale(0.9) rotate(20)">
66 <use xlink:href="#words"/>
67 <g transform="scale(0.9) rotate(20)">
68 <use xlink:href="#words"/>
69 <g transform="scale(0.9) rotate(20)">
70 <use xlink:href="#words"/>
71 <g transform="scale(0.9) rotate(20)">
72 <use xlink:href="#words"/>
73 <g transform="scale(0.9) rotate(20)">
74 <use xlink:href="#words"/>
75 </g></g></g></g></g>
76 </g></g></g></g></g>
77 </g></g></g>
78 </defs>
79
80 <g id="testContent">
81 <text class="title" x="50%" y="10%" font-size="15" text-anchor="middle" >
82 Text Transformation</text>
83 <g transform="translate(-40,-30)" filter="url(#blur)" fill="black" opacity="0.2">
84 <use xlink:href="#rotatedText"/>
85 </g>
86 <g>
87 <use xlink:href="#rotatedText" fill="white" stroke-width="2" stroke="black"/>
88 <g transform="translate(225, 250) scale(0.254)">
89 <use xlink:href="#text" fill="black" filter="url(#blur)" opacity="0.4" transform="translate(-10, 8)"/>
90 <use xlink:href="#text" stroke="black" stroke-width="16" fill="none"/>
91 <use xlink:href="#text" stroke="none" fill="white"/>
92 </g>
93 </g>
94 </g>
95
96 <!-- ============================================================= -->
97 <!-- Batik sample mark -->
98 <!-- ============================================================= -->
99 <use xlink:href="batikLogo.svg#Batik_Tag_Box" />
100
101 </svg>