Problem with text drawing element
- From: Vas Zor <sgt04b yahoo gr>
- To: dia-list gnome org
- Subject: Problem with text drawing element
- Date: Fri, 5 Nov 2010 12:03:45 +0000 (GMT)
Hi all,
I have a problem with shapes that use the text drawing element. My dia version is 0.97.1 on XP. I am using
the following shape (borrowed from http://mail.gnome.org/archives/dia-list/2010-April/msg00005.html):
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns" xmlns:svg="http://www.w3.org/2000/svg">
<name>Shape - Simple test</name>
<icon>test.png</icon>
<connections>
<point x="0" y="0.5"/>
<point x="0" y="1.5"/>
<point x="4" y="1"/>
</connections>
<aspectratio type="fixed"/>
<!-- <svg:svg width="4" height="2"> -->
<svg:svg>
<svg:line x1="0" y1="0.5" x2="1" y2="0.5"/>
<svg:line x1="0" y1="1.5" x2="1" y2="1.5"/>
<svg:line x1="3" y1="1" x2="4" y2="1"/>
<svg:rect x="1" y="0" width="2" height="2"/>
<svg:text style="font-size: 0.6" x="0.5" y="0.4" textLength="0.29">1</svg:text>
<svg:text style="fill: font-size: 0.6" x="0.5" y="1.4" textLength="0.29">2</svg:text>
<svg:text style="font-size: 0.6" x="3.25" y="0.9" textLength="0.29">3</svg:text>
</svg:svg>
</shape>
If I insert this shape only one time in my drawing then everything is OK. If I insert it two or more times
then the text elements (in this case the "1", "2", "3") appear in wrong positions and far away from the
mother shape.
Thanks
Vangelis
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]