W3C home > Mailing lists > Public > www-svg@w3.org > October 2011

RE: stroke dash improvement proposal

From: David Dailey <ddailey@zoominternet.net>
Date: Tue, 25 Oct 2011 11:05:48 -0400
To: "'Cameron McCormack'" <cam@mcc.id.au>, "'www-svg'" <www-svg@w3.org>
Message-ID: <001b01cc9327$946730a0$bd3591e0$@net>
A couple of reactions:

1. allowing both gap adjustments and dash adjustments (or just one) would probably make sense. Cartographers make lots of uses of dashes, and not always those which run parallel to the boundary. The overall use case though is something that makes a lot of sense, and is one that I've encountered often. In the past I've tried to calculate the dash array based on the totalPathLength, but have found it too inconsistent across browsers to make it useful.

2. If dash adjustments and stroke positions (offsets) are both to be used then it should probably be made clear in both places that (I assume) the dash adjustments would take place after any stroke positioning is applied (else the calculations will be off).

3. If glyph deformations are allowed (in 2.0) which reshape glyphs according to both a top and bottom curve, then if the browser has svg font support, then the cartographic use-case of wanting to stroke a path with geometric symbols that curve with the boundary that is being stroked could then be combined with this to ensure that little glyphs at the beginning and end of a closed path align perfectly -- a clearly desirable thing when drawing the boundary of a cartographic feature, it would seem. A related reaction will be left to the stroke position draft.

Cheers
David

-----Original Message-----
From: www-svg-request@w3.org [mailto:www-svg-request@w3.org] On Behalf Of Cameron McCormack
Sent: Monday, October 24, 2011 7:18 PM
To: www-svg
Subject: stroke dash improvement proposal

I've started writing up a proposal for some improvements to stroke 
dashing control.

http://www.w3.org/Graphics/SVG/WG/wiki/Proposals/Stroke_dash_adjustment

Comments on this proposal are welcome, too.  Sorry for not having 
written up examples/pictures into the wiki page yet.
Received on Tuesday, 25 October 2011 15:06:19 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:49 GMT