[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Fwd: Fwd: Rendering of stroke with stroke-width zero
From:       Sven Langkamp <sven.langkamp () gmail ! com>
Date:       2009-03-24 13:52:59
Message-ID: 478b087a0903240652k78aeaf25sb4e9b84383b0c67c () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


As requested on irc, I send this to the list for archival purposes

---------- Forwarded message ----------
From: Christian Lippka - Sun Microsystems Gmbh - Hamburg <
Christian.Lippka@sun.com>
Date: Tue, Feb 3, 2009 at 4:24 PM
Subject: Re: Fwd: Rendering of stroke with stroke-width zero
To: Thorsten Zachmann <t.zachmann@zagge.de>
Cc: Michael Brauer - Sun Germany - ham02 - Hamburg <Michael.Brauer@sun.com>,
Sven Langkamp <sven.langkamp@gmail.com>


Hi Thorsten & Sven,

yes you are correct, SVG defines a svg:stroke-width of zero as an invisible
line. Unfortunately, OpenOffice.org always used a zero width
as an indication to a 'hairline' stroke. A hairline stroke is a line which
width is the minimum renderable size on the current output device.
On a screen this would be a pixel, on a printer this would be a dot.

For not painting any stroke you would use the draw:stroke="none" (which is
also defined for SVG as svg:stroke="none").

So yes the current behavior of OpenOffice.org is not exactly as defined in
the OpenDocument specification at this point. The feature
to define "hairlines" is often used in vector drawing applications so this
should be integrated into the OpenDocument specification.

The question is, do we define that svg:stroke-width = "0" in OpenDocument
behaves differently to the SVG specification or do
we introduce a new draw:stroke-width attribute and deprecate
svg:stroke-width? I of course would prefer the first alternative.
Do you have other opinions/suggestions?

Regards,
Christian


Thorsten Zachmann wrote:

> Hello Christian,
>
> during work off svg filter in koffice we found a problem with the
> svg:stroke-width and the way it is handled in OpenOffice. Can you please
> check if that is a bug in OpenOffice. Please see attached mail.
>
> We can open a bug report if it is a bug inside OpenOffice.
>
> Have a nice week,
> Thorsten Zachmann
>
>
> ----------  Forwarded Message  ----------
>
> Subject: Rendering of stroke with stroke-width zero
> Date: Sunday 18 January 2009
> From: "Sven Langkamp" <sven.langkamp@gmail.com>
> To: "Thorsten Zachmann" <t.zachmann@zagge.de>
>
> Hi,
>
> at the moment OpenOffice renders the stroke of an object with a 1 pixel
> wide
> line, if  svg:stroke-width is zero. There is no information about the
> interpretation about the stroke width in the ODF 1.1 specification, so the
> SVG specification should be applied.
>
> In the SVG specification (http://www.w3.org/TR/SVG11/painting.html)
> stroke-width defined as the following:
>
> The width of the stroke on the current object. If a percentage is used, the
> value represents a percentage of the current viewport. (See Units.)
> A zero value causes no stroke to be painted. A negative value is an error
> (see Error processing).
>
>
> So according to the SVG specification, a stroke with zero width shouldn't
> be
> painted.
>
> How should a stroke with zero width be rendered for ODF documents?
>
>
> Regards,
> Sven
>
> -------------------------------------------------------
>
>

[Attachment #5 (text/html)]

As requested on irc, I send this to the list for archival purposes<br><br><div \
class="gmail_quote">---------- Forwarded message ----------<br>From: <b \
class="gmail_sendername">Christian Lippka - Sun Microsystems Gmbh - Hamburg</b> <span \
dir="ltr">&lt;<a href="mailto:Christian.Lippka@sun.com">Christian.Lippka@sun.com</a>&gt;</span><br>
                
Date: Tue, Feb 3, 2009 at 4:24 PM<br>Subject: Re: Fwd: Rendering of stroke with \
stroke-width zero<br>To: Thorsten Zachmann &lt;<a \
href="mailto:t.zachmann@zagge.de">t.zachmann@zagge.de</a>&gt;<br>Cc: Michael Brauer - \
Sun Germany - ham02 - Hamburg &lt;<a \
href="mailto:Michael.Brauer@sun.com">Michael.Brauer@sun.com</a>&gt;, Sven Langkamp \
&lt;<a href="mailto:sven.langkamp@gmail.com">sven.langkamp@gmail.com</a>&gt;<br> \
<br><br>Hi Thorsten &amp; Sven,<br> <br>
yes you are correct, SVG defines a svg:stroke-width of zero as an invisible line. \
Unfortunately, OpenOffice.org always used a zero width<br> as an indication to a \
&#39;hairline&#39; stroke. A hairline stroke is a line which width is the minimum \
renderable size on the current output device.<br> On a screen this would be a pixel, \
on a printer this would be a dot.<br> <br>
For not painting any stroke you would use the draw:stroke=&quot;none&quot; (which is \
also defined for SVG as svg:stroke=&quot;none&quot;).<br> <br>
So yes the current behavior of OpenOffice.org is not exactly as defined in the \
OpenDocument specification at this point. The feature<br> to define \
&quot;hairlines&quot; is often used in vector drawing applications so this should be \
integrated into the OpenDocument specification.<br> <br>
The question is, do we define that svg:stroke-width = &quot;0&quot; in OpenDocument \
behaves differently to the SVG specification or do<br> we introduce a new \
draw:stroke-width attribute and deprecate svg:stroke-width? I of course would prefer \
the first alternative.<br> Do you have other opinions/suggestions?<br>
<br>
Regards,<br>
Christian<div><div></div><div class="h5"><br>
<br>
Thorsten Zachmann wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hello Christian,<br>
<br>
during work off svg filter in koffice we found a problem with the svg:stroke-width \
and the way it is handled in OpenOffice. Can you please check if that is a bug in \
OpenOffice. Please see attached mail.<br> <br>
We can open a bug report if it is a bug inside OpenOffice.<br>
<br>
Have a nice week, <br>
Thorsten Zachmann<br>
<br>
<br>
----------  Forwarded Message  ----------<br>
<br>
Subject: Rendering of stroke with stroke-width zero<br>
Date: Sunday 18 January 2009<br>
From: &quot;Sven Langkamp&quot; &lt;<a href="mailto:sven.langkamp@gmail.com" \
                target="_blank">sven.langkamp@gmail.com</a>&gt;<br>
To: &quot;Thorsten Zachmann&quot; &lt;<a href="mailto:t.zachmann@zagge.de" \
target="_blank">t.zachmann@zagge.de</a>&gt;<br> <br>
Hi,<br>
<br>
at the moment OpenOffice renders the stroke of an object with a 1 pixel wide<br>
line, if  svg:stroke-width is zero. There is no information about the<br>
interpretation about the stroke width in the ODF 1.1 specification, so the<br>
SVG specification should be applied.<br>
<br>
In the SVG specification (<a href="http://www.w3.org/TR/SVG11/painting.html" \
target="_blank">http://www.w3.org/TR/SVG11/painting.html</a>)<br> stroke-width \
defined as the following:<br> <br>
The width of the stroke on the current object. If a percentage is used, the<br>
value represents a percentage of the current viewport. (See Units.)<br>
A zero value causes no stroke to be painted. A negative value is an error<br>
(see Error processing).<br>
<br>
<br>
So according to the SVG specification, a stroke with zero width shouldn&#39;t be<br>
painted.<br>
<br>
How should a stroke with zero width be rendered for ODF documents?<br>
<br>
<br>
Regards,<br>
Sven<br>
<br>
-------------------------------------------------------<br> 
 <br>
</blockquote>
</div></div><font color="#888888"><br>
</font></div><br>



_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic