bella 01/07/30 23:22:15
Modified: samples/tests textLayout2.svg
Log:
added tests for the text rotate attribute
Revision Changes Path
1.3 +13 -10 xml-batik/samples/tests/textLayout2.svg
Index: textLayout2.svg
===================================================================
RCS file: /home/cvs/xml-batik/samples/tests/textLayout2.svg,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- textLayout2.svg 2001/06/13 00:48:35 1.2
+++ textLayout2.svg 2001/07/31 06:22:15 1.3
@@ -14,7 +14,7 @@
<!-- Test description here -->
<!-- -->
<!-- @author [EMAIL PROTECTED] -->
-<!-- @version $Id: textLayout2.svg,v 1.2 2001/06/13 00:48:35 bella Exp $
-->
+<!-- @version $Id: textLayout2.svg,v 1.3 2001/07/31 06:22:15 bella Exp $
-->
<!-- ========================================================================= -->
<?xml-stylesheet type="text/css" href="test.css" ?>
<svg width="450" height="500" viewBox="0 0 450 500">
@@ -56,25 +56,28 @@
<text x="225" y="165" font-size="3%"><tspan baseline-shift="+20%"
fill="blue">positive</tspan> and <tspan baseline-shift="-20%" fill="green">negative
</tspan>baseline-shift</text>
<text x="225" y="180" class="Caption">baseline-shift="+/-20%"</text>
</g>
- <text x="50%" y="47%" text-anchor="middle" font-size="2%">Multi-line Text
Selection</text>
+ <text x="50%" y="42%" text-anchor="middle" font-size="2%">Multi-line Text
Selection</text>
- <text x="50%" y="50%" text-anchor="middle" font-size="1.5%"
font-style="italic">(Try selecting the following text regions)</text>
+ <text x="50%" y="45%" text-anchor="middle" font-size="1.5%"
font-style="italic">(Try selecting the following text regions)</text>
<text text-anchor="start" font-size="3%">
- <tspan x="100" y="280">Text selections can span multiple</tspan>
- <tspan x="100" y="300">lines via <tspan> elements.</tspan>
+ <tspan x="120" y="50%">Text selections can span multiple</tspan>
+ <tspan x="120" y="53%">lines via <tspan> elements.</tspan>
</text>
- <text text-anchor="start" fill="blue" font-size="4%"
transform="translate(70, 390)">
- <tspan x="0 10 25 50 75 90 100 90 75 50 25 10 0"
- y="0 -25 -40 -50 -40 -25 0 25 40 50 40 25 10 0">Text-circle.</tspan>
+ <text text-anchor="start" fill="blue" font-size="4%"
transform="translate(90, 360)">
+ <tspan x="0 10 25 50 75 90 100 90 75 50 25 10 0"
+ y="0 -25 -40 -50 -40 -25 0 25 40 50 40 25 10
0">Text-circle.</tspan>
</text>
- <text fill="green" font-size="4%" transform="translate(250, 350)"
+ <text fill="green" font-size="4%" transform="translate(250, 320)"
x="0 20 40 60 80 80 80 80 80 60 40 20 0 0 0 0"
y="0 0 0 0 0 20 40 60 80 80 80 80 80 60 40 20">
Text-in-a-square
- </text>
+ </text>
+
+ <text font-size="3%" x="225" y="450" text-anchor="middle">Text with <tspan
rotate="10 -10 10 -10 10 -10 10" fill="red">rotated</tspan> glyphs</text>
+ <text font-size="3%" x="225" y="465" text-anchor="middle" rotate="15">More
rotated glyphs</text>
</g>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]