Stroke Caps

Stroke Caps

(A) An object with a composite shape, (B) a custom stroke cap created from that shape.

Stroke caps define the ends of open paths and dashes. The default cap is flat; standard alternatives extend it with a round or square shape.

A custom cap can use a shape with one or more subpaths. It needs an open subpath to connect to the stroke ending. Edit existing caps or create presets and styles from object shapes.

Strokes use the winding fill rule, so the directions of a cap’s subpaths affect the filled result. To create a transparent hole where the cap overlaps the stroke, adjust the direction of the overlapping subpath.

Edit Stroke Caps

Choose Edit Start Cap or Edit End Cap from the Stroke panel menu. Alternatively, hold Option (Mac) or Alt (Windows) and click the corresponding cap selector. The cap editor opens so you can position the cap relative to the path end.

The stroke cap editor.

Use Space to extend or shorten the path at the cap. The value is a percentage of the stroke width. You can also drag the stroke end in the preview to adjust this spacing.

Reverse Shape changes the direction in which the cap’s open subpath connects to the stroke. Reversing that connection changes the resulting cap shape.

Create Stroke Caps

Create a custom cap from an object shape with at least one open subpath. A single open subpath works on its own. For shapes with several subpaths, the recommended arrangement is one open subpath and the rest closed.

Save caps as presets or styles. Applying a preset copies its shape, spacing, and reverse setting into the object’s stroke attributes. Later changes to the preset do not affect caps already applied from it.

Creating a stroke cap preset.

To create a cap preset:

  1. Select the object whose shape you want to use.
  2. Choose Create Cap Preset from Styles -> Create Styles or the Stroke panel menu.
  3. Choose the destination preset group in Group.
  4. Enter a Name (required) and, optionally, a Description.
  5. Set Space, or drag the cap end in the preview to adjust spacing.
  6. Set Reverse Shape as needed.
  7. Click Ok to create the preset.

Creating a stroke cap style.

Cap styles are stored in the document and can link their shape to a source object. With this link, editing the source shape updates all caps using the style. Presets cannot maintain this shape link.

To create a cap style:

  1. Select the object whose shape you want to use.
  2. Choose Create Cap Style from Styles -> Create Styles or the Stroke panel menu.
  3. Enter a Name (required).
  4. Set Space, or drag the cap end in the preview to adjust spacing.
  5. Set Reverse Shape as needed.
  6. Enable Link to Object if you want the cap shape to follow changes to the source object’s shape.
  7. Click Ok to create the style.