Shape strangeness



I've created a shape by exporting from Dia. After som manual fiddling with the shape I got closer, but I still have two problems:

* When inserting the shape, it has the wrong size (roughly half the size).
  How can I set the size explicitly? (I don't want to have to resize it
  manually all the time).

* I am unable to set the color of a text element. The 'fill' element
  does not seem to do anything in this line:

    <svg:text style="fill: #51727a; text-anchor:middle; font-size: 0.7;
                     font-family: bitstream vera sans mono;
                     font-style: normal; font-weight: normal"
              x="2" y="3.3">SatPoint</svg:text>

  How can I set the color?


In addition, when exporting the shape there was an error.
The circle in the original drawing became two ellipses, however:
* The line width was too big
* The color was wrong.
So to get it to work I had to delete one of the ellipses, and set the
element "stroke: ..." to get the desired color.

I can prepare a bug report for this case if anyone is interested.

cheers
/Christian

PS. Here's the entire shape.

<?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>SatPoint - footer-1</name>
  <icon>Diagram1.png</icon>
  <connections>
    <point x="6.5" y="3.7"/>
  </connections>
  <aspectratio type="fixed"/>
  <svg:svg>
<svg:polyline style="fill: none; fill-opacity:0; stroke-width: 0.001; stroke: #000000" points="10.5,1.2 10.5,0 12.6,0 12.6,0.6 0,0.6 0,1.2 12.6,1.2 12.6,1.8 0,1.8 0,2.4 12.6,2.4 12.6,3 4.2,3 "/> <svg:polyline style="fill: none; fill-opacity:0; stroke-width: 0.001; stroke: #000000" points="4.2,3.6 4.2,1.8 8.4,1.8 8.4,3.6 "/> <svg:polyline style="fill: none; fill-opacity:0; stroke-width: 0.001; stroke: #000000" points="0,3.6 0,-2.22045e-016 12.6,0 12.6,3.6 0,3.6 "/> <svg:text style="fill: #000000; text-anchor:start; font-size: 0.25; font-family: serif; font-style: normal; font-weight: normal" x="0.1" y="0.8">Desc.</svg:text> <svg:text style="fill: #000000; text-anchor:start; font-size: 0.25; font-family: serif; font-style: normal; font-weight: normal" x="4.3" y="2">Date</svg:text> <svg:text style="fill: #000000; text-anchor:start; font-size: 0.25; font-family: serif; font-style: normal; font-weight: normal" x="8.5" y="2">Rev. date</svg:text> <svg:text style="fill: #000000; text-anchor:start; font-size: 0.25; font-family: serif; font-style: normal; font-weight: normal" x="0.1" y="1.4">File</svg:text> <svg:text style="fill: #000000; text-anchor:start; font-size: 0.25; font-family: serif; font-style: normal; font-weight: normal" x="10.6" y="0.2">ID</svg:text> <svg:text style="fill: #000000; text-anchor:start; font-size: 0.25; font-family: serif; font-style: normal; font-weight: normal" x="10.6" y="0.8">Rev.</svg:text> <svg:text style="fill: #000000; text-anchor:start; font-size: 0.25; font-family: serif; font-style: normal; font-weight: normal" x="4.3" y="2.6">Design</svg:text> <svg:text style="fill: #000000; text-anchor:start; font-size: 0.25; font-family: serif; font-style: normal; font-weight: normal" x="4.3" y="3.2">Drawn</svg:text> <svg:text style="fill: #000000; text-anchor:start; font-size: 0.25; font-family: serif; font-style: normal; font-weight: normal" x="8.5" y="2.6">Check</svg:text> <svg:text style="fill: #000000; text-anchor:start; font-size: 0.25; font-family: serif; font-style: normal; font-weight: normal" x="8.5" y="3.2">Approve</svg:text> <svg:line style="fill: none; fill-opacity:0; stroke-width: 0.001; stroke: #000000" x1="8.4" y1="1.8" x2="8.4" y2="3.6"/> <svg:text style="fill: #000000; text-anchor:start; font-size: 0.25; font-family: serif; font-style: normal; font-weight: normal" x="0.1" y="0.2">Title</svg:text> <svg:text style="fill: #51727a; text-anchor:middle; font-size: 0.7; font-family: bitstream vera sans mono; font-style: normal; font-weight: normal" x="2" y="3.3">SatPoint</svg:text> <svg:ellipse style="fill: #f03cf9; stroke: #f03cf9" cx="3.84451" cy="3.22969" rx="0.0774904" ry="0.0774904"/>
  </svg:svg>
</shape>


--
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr


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