Alter stroke type (Dashes)

Asked by dconnell

In the Dashes drop down box I see a dot and a dash listed. If I want to use two dots and a dash instead, is there a way to accomplish that?

Question information

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Hachmann (marenhachmann) said :
#1

Hi dconnell,

yes, this is possible, but it requires you to edit the XML, using a text editor or the built-in XML editor.

XML editor:
- Select the path you want to change (best to already apply a dashed stroke, so you'll only have to adapt it, not create).
- Hit Shift+Ctrl+X
- Edit the style attribute, and there the stroke-dasharray property (for example, change the numbers to 20,10,5,5,5,10)
- Hit Ctrl+Enter

For some concrete examples, see these pages (the bottom one seems to have exactly what you want already in one of the examples):

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray
or
http://www.w3schools.com/svg/svg_stroking.asp

Those dots now are no real dots, but little squares, see https://answers.launchpad.net/inkscape/+question/268429 for more info.

Kind regards,
 Maren

Revision history for this message
dconnell (connelld9) said :
#2

Thank you very much!

Can you help with this problem?

Provide an answer of your own, or ask dconnell for more information if necessary.

To post a message you must log in.