stroke style...

Asked by Edgar Rodríguez

Hello, I need draw an alphabet for children, but don't know how to do round spot strokes. It always result in dotted lines with hyphens.
Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
su_v
Solved:
Last query:
Last reply:
Revision history for this message
Best su_v (suv-lp) said :
#1

Here is an example file for dotted lines:
 https://dl.dropboxusercontent.com/u/65084033/irc/dotted-lines.svg
(you can reuse those styles for other paths via menu 'Edit → Copy' (Ctrl+C), and then - after selecting the target object(s) - 'Edit → Paste Style' (Shift+Ctrl+V): The style (fill and stroke attributes or for text the font, size, and style) of the object in the clipboard are given to the selected object(s). )

Technical details:
None of the predefined dash styles will render the dashes as mere 'dots' - the "trick" is to create a custom dash style (stroke-dasharray) via XML Editor where the length of the dash is '0' (zero), and use round caps for the stroke.

Further information:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Attributes-Stroke.html#Attributes-Stroke-Dashes
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Attributes-Stroke.html#Attributes-Stroke-Cap
http://www.w3.org/TR/SVG11/painting.html#StrokeDasharrayProperty

Revision history for this message
Edgar Rodríguez (edgar1rodriguez) said :
#2

Thanks ~suv, that solved my question.