bella 01/08/02 21:50:14
Modified: samples/tests textEffect.svg
Log:
added a gradient stroke test and rearranged a bit
Revision Changes Path
1.2 +33 -12 xml-batik/samples/tests/textEffect.svg
Index: textEffect.svg
===================================================================
RCS file: /home/cvs/xml-batik/samples/tests/textEffect.svg,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- textEffect.svg 2001/08/01 12:08:39 1.1
+++ textEffect.svg 2001/08/03 04:50:14 1.2
@@ -14,7 +14,7 @@
<!-- text effects -->
<!-- -->
<!-- @author [EMAIL PROTECTED] -->
-<!-- @version $Id: textEffect.svg,v 1.1 2001/08/01 12:08:39 tkormann Exp $ -->
+<!-- @version $Id: textEffect.svg,v 1.2 2001/08/03 04:50:14 bella Exp $ -->
<!-- ========================================================================= -->
<?xml-stylesheet type="text/css" href="test.css" ?>
@@ -51,31 +51,52 @@
<glyph unicode="T" glyph-name="T" horiz-adv-x="1251" d="M531
0V1293H48V1466H1210V1293H725V0H531Z" />
</font>
- <linearGradient id="grad">
+ <linearGradient id="linearGradient">
<stop style="stop-color:gold" offset="0"/>
<stop style="stop-color:orange" offset=".5"/>
<stop style="stop-color:crimson" offset="1"/>
- </linearGradient>
+ </linearGradient>
+
+
+ <radialGradient id="radialGradient">
+ <stop style="stop-color:gold" offset="0"/>
+ <stop style="stop-color:orange" offset=".5"/>
+ <stop style="stop-color:crimson" offset="1"/>
+ </radialGradient>
+
<filter id="dropShadow" filterUnits="objectBoundingBox">
<feGaussianBlur in="SourceGraphic" stdDeviation="2 2" />
</filter>
</defs>
- <text x="100" y="160" style="fill:url(#grad); font-size:40pt;
font-family:Arial">BATIK
- <tspan x="300" style="font-size:12; fill:black">(System font)</tspan>
+ <text x="120" y="160" style="fill:url(#linearGradient); font-size:40pt;
font-family:Arial; text-anchor:middle">
+ BATIK
</text>
- <text x="100" y="260" style="fill:url(#grad); font-family:SVGArial;
font-size:40pt">BATIK
- <tspan x="300" style="font-size:12; fill:black">(SVG font)</tspan>
+ <text x="330" y="160" style="fill:url(#linearGradient); font-family:SVGArial;
font-size:40pt; text-anchor:middle">
+ BATIK
+ </text>
+
+ <text x="120" y="260" style="stroke:url(#radialGradient); stroke-width:2;
fill:none; font-size:40pt; text-anchor:middle; font-family:Arial">
+ BATIK
+ </text>
+
+ <text x="330" y="260" style="stroke:url(#radialGradient); stroke-width:2;
fill:none; font-family:SVGArial; font-size:40pt; text-anchor:middle">
+ BATIK
</text>
-
- <text x="100" y="360" style="filter:url(#dropShadow); fill:red; font-size:40pt;
font-family:Arial">BATIK</text>
- <text x="300" y="360" style="font-size:12; filter:none; fill:black">(System
font)</text>
- <text x="100" y="460" style="filter:url(#dropShadow); fill:red;
font-family:SVGArial; font-size:40pt">BATIK</text>
- <text x="300" y="460" style="font-size:12; filter:none; fill:black">(SVG
font)</text>
+ <text x="120" y="360" style="filter:url(#dropShadow); fill:red; font-size:40pt;
font-family:Arial; text-anchor:middle">
+ BATIK
+ </text>
+
+ <text x="330" y="360" style="filter:url(#dropShadow); fill:red;
font-family:SVGArial; font-size:40pt; text-anchor:middle">
+ BATIK
+ </text>
+
+ <text x="120" y="400" style="font-size:12; filter:none; fill:black;
text-anchor:middle">(System font)</text>
+ <text x="330" y="400" style="font-size:12; filter:none; fill:black;
text-anchor:middle">(SVG font)</text>
</g>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]