9Style: Stroke and Markers

While not very common in artistic drawings, stroked paths—outlines, frames, arrows, connectors, and so on—are very common in technical drawings such as plans or flowcharts. A sizable share of all SVG style properties control the appearance of stroke, so it deserves a chapter of its own.

While stroke in SVG is quite rich and can serve a lot of purposes, you may want some features that are not supported or are available only via workarounds. In particular, SVG stroke always has constant width (it cannot get wider or narrower along the path); to emulate variable-width stroke, use the Calligraphic pen (14.2) or path effects (Chapter 13). Also, while stroke can have a dash pattern (9.4) and markers attached to its nodes ...

Get The Book of Inkscape, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.