Outlining Objects

Outlining Objects

Apply one or more stroke styles to draw an object’s outline. Each stroke controls the outline’s width and other properties. Strokes can also outline clipping shapes, individual vector text characters, and glyphs in text frames.

A stroke uses a fill style to color the area it covers. This is usually a solid color chosen in the color panel, but any fill type can be used, including gradients, tiling patterns, and noise.

For gradient strokes, use the Stroke gradient setting to choose how the colors are arranged:

  • Normal - Fill the stroke area as if it were a regular shape.
  • Across Stroke - Vary the colors across the stroke, creating bands parallel to the path.
  • Along Stroke - Vary the colors along the path.

Choose stroke attributes in the Stroke panel or Stroke Selector dialog. You can also apply saved stroke styles or presets from their panels.

Choose the stroke’s fill in the color, gradient, pattern, or noise panel, or use the Stroke or Appearance panel.

Each stroke can have its own opacity and transparency settings. Set these in the Appearance panel.

Stroke settings are used for:

  • Object outlines.
  • The Outline shape effect.
  • Tiling grids in pattern fills.
  • Contour effects.
  • Text decorations: underlines, overlines, and strikethroughs.

The following sections introduce the main stroke settings.

Width

Stroke width: (A) centered on the path, (B) shifted outward by 200%.

The stroke’s width determines its thickness and is one of the most frequently adjusted settings.

Set the width to 0 for a true hairline: the thinnest possible line at any rendering resolution or zoom level. With antialiasing, it can cover part of a pixel.

You can also vary the width with a calligraphic nib by adjusting its stretch and angle, or with a variable width profile along the path. These methods can be combined.

Stroke alignment shifts the stroke away from the path. On a closed shape, it can move inward or outward; on an open path, it can move to either side. Set the offset as a percentage of the stroke width or as an absolute distance.

The corner shape controls how sharp, or cusp, corners are drawn when the stroke width is greater than zero.

Set these options in the Stroke panel or Stroke Selector dialog.

Caps

Examples of start and end cap shapes.

Caps define the ends of open paths and individual dashes.

Choose a predefined cap or create one from an object’s shape as a preset, style, or shape reference. The start and end of a path or dash can use different caps.

See Stroke Caps for selection and creation options.

Arrows

Arrowheads at the ends of open paths.

Arrowheads decorate the start and end of open paths. Caps still control the ends of any dashes within the path.

Arrowheads use the same fill style as the stroke. Choose a predefined arrowhead or create one from an object’s shape. Link an arrowhead to a source shape to update all its uses when that shape changes.

See Stroke Arrows for selection and creation options.

Dashes

Examples of dash patterns.

Dashes divide a stroke into short segments separated by gaps. Set dash and gap lengths in absolute units or relative to the stroke width. You can also align dashes to sharp corners by adjusting the sequence lengths.

Edit dashes visually by dragging segments and gaps in the dash editor. Save sequences as presets or styles to reuse them independently of other stroke settings. Use the Stroke Dash Style role to reference an object’s dash settings; changes to that source update every use of the style.

See Stroke Dashes for selection and editing options.

Stripes

Examples of stripe patterns.

Stripes divide a stroke into parallel filled bands with gaps between them. Define band and gap widths relative to the stroke width. The bands follow offset curves, as stroke alignment does. Combine stripes with dashes and variable width profiles for more complex outlines.

Edit stripe widths and gaps visually in the stripe editor. Save them as presets or styles to reuse them independently of other stroke settings. The Stroke Stripe Style role links a stripe style to an object’s settings so it updates with the source.

See Stroke Stripes for selection and editing options.

Profiles

A variable width stroke profile.

A width profile varies the stroke’s thickness along the path. Set widths at different points to create effects such as a brushstroke drawn with changing pressure.

Use the Width Width tool tool to edit the profile directly on an object’s outline. By default, both sides change symmetrically, but you can give each side a different width.

See Stroke Profile for selection and editing options.

Styling and References

Save a complete set of stroke attributes as a preset or style for reuse. A style links its uses to a common definition, so editing it updates all objects using it.

Enable the Stroke Style role on a named object to use it as a stroke-style source. Changes to its stroke attributes update every use of the referenced style.

You can also save or reference individual attributes: start and end caps, start and end arrows, dashes, stripes, and width profiles. Use the corresponding object role to link an attribute to a named source object.

When creating a cap or arrow style, enable Link to Object to link its shape to the selected object’s shape. Changes to the source shape then update the caps or arrows. This option is available for styles, not presets.

Expanding the Stroke

A stroke forms a filled region determined by the object’s path, stroke width, alignment, and other attributes. Its fill can be a color, gradient, pattern, or noise.

Choose Expand Stroke from the Styles menu to convert this region into editable paths. Depending on the stroke settings, the result can be one or two objects. Their shapes match the stroke area and retain its fill style.

Expansion approximates the stroke area with as few extra nodes as possible. Zoom in before expanding for greater precision and more nodes. Zoom out for fewer nodes and lower precision.