On Fri, 24 Nov 2000 [EMAIL PROTECTED] wrote:

> We have just tried to export a simple test-diagram and have found
> an error occuring the shapes background that are ever black:
> 
> The following example was originally generated by DIA 0.85 on WIN32.
> See the wrong background colour (use Microsoft Explorer 5.5 with the newest
> Adobe SVG-Plugin):
> 
> <?xml version="1.0" standalone="no"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG December 1999//EN"
> "http://www.w3.org/Graphics/SVG/svg-19991203.dtd">
> <svg width="10cm" height="3cm" viewBox="2 1 13 5">
>   <rect style="fill: #ffffff" x="3" y="2" width="9" height="2"/>
>   <rect style="stroke-width: 0.1; stroke: #000000" x="3" y="2" width="9"
> height="2"/>
>   <text style="fill: #000000; text-align: center; font-size: 0.6" x="7"
> y="3">Hallo</text>
> </svg>
> 
> The Problem is in line 4 because the fill-attribute has no effect here
> ( the remaining rect-attributes are also redundant in line 4 and 5).

Why not?  The first line should be producing a filled rectangle (with no
border), and the second should be producing the outline (with no
fill).  Is it doing something different with the SVG plugin?  From my
reading of the SVG spec, what we do should be fine.

> 
> The solution is the following modified example:
> 
> <?xml version="1.0" standalone="no"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG December 1999//EN"
> "http://www.w3.org/Graphics/SVG/svg-19991203.dtd">
> <svg width="10cm" height="3cm" viewBox="2 1 13 5">
>   <rect style="fill: #ffffff; stroke-width: 0.1; stroke: #000000" x="3"
> y="2" width="9" height="2"/>
>   <text style="fill: #000000; text-align: center; font-size: 0.6" x="7"
> y="3">Hallo</text>
> </svg>

The reason that two elements are written for this is that Dia's rendering
model separates out drawing the filled rectangle and the outline.

James.

Reply via email to