[lasem/lasem-0-4: 2/2] tests: add a text dy dx attribute sample.



commit e4cef768c61fbbd56127b399daeced58691b1cc9
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Fri Nov 30 08:43:34 2012 +0100

    tests: add a text dy dx attribute sample.

 tests/data/svg/samples/texts/svg-text-dx-dy.svg |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/tests/data/svg/samples/texts/svg-text-dx-dy.svg b/tests/data/svg/samples/texts/svg-text-dx-dy.svg
new file mode 100644
index 0000000..5d6d886
--- /dev/null
+++ b/tests/data/svg/samples/texts/svg-text-dx-dy.svg
@@ -0,0 +1,22 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
+  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>
+<svg width="10cm" height="3cm" viewBox="0 0 1000 300"
+     xmlns="http://www.w3.org/2000/svg"; version="1.1">
+  <desc>Example tspan02 - using tspan's dx and dy attributes 
+        for incremental positioning adjustments</desc>
+  <g font-family="Verdana" font-size="45" >
+    <text dy="0 0 0 0 0 0 0 10 -10 20 20" x="200" y="150" fill="blue" >
+      But you
+        <tspan dx="2em 1em 1em 1em 100" dy="-50 -10" font-weight="bold" fill="red" >
+          are
+        </tspan>
+        <tspan dy="100 10 10 10 10">
+           a peach!
+        </tspan>
+    </text>
+  </g>
+  <!-- Show outline of canvas using 'rect' element -->
+  <rect x="1" y="1" width="998" height="298"
+        fill="none" stroke="blue" stroke-width="2" />
+</svg>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]