Well, I thought this would be easier than it was…
I want an effect like this, but which I can apply to any stroke:
I tried using stroke arrowheads, but they all seem to start just behind the end of the stroke, so it didn’t work:
I tried pattern brushes, but the results weren’t clean, and in particular, the arrow tips get distorted if there’s any curve at the tip:
How can I add this effect to a stroke in Illustrator CS6 and reliably get a square right-angle point flush with the end of the stroke?
Just saw Scott’s answer to Custom stroke caps in Illustrator?. The Art brush trick sadly has the same problem with distorted tips as the Pattern brush option, but the custom arrowhead option looks promising – will add an answer if it works and is possible to snap 100% to the stroke width and tip of the stroke.
Got it working with the arrow heads staying sharp even on curves:
It’s a bit involved though. You have to copy the Illustrator arrowheads file and make a very precise new arrowhead option inside it.
This means that the stroke won’t arrows won’t be recognised if someone else opens your illustrator file – you need to expand strokes before sharing the .ai.
- Copy the Illustrator arrowheads.ai file to the illustrator plugins folder (not any of the subfolders), then in that file, copy an arrowhead onto a new layer (can be off the artboard), break the link to the symbol, make it a new symbol, give the layer, text and new symbol all a new name. More details on Scott’s answer here
To get the new arrowhead perfectly flush, I’d recommend:
- Delete the existing arrowhead shape, leaving just the line. If there are any anchor points other than the start and end of the line, delete them
- Beef up the stroke size of the line so it’s easier to work with.
- Duplicate it, make it shorter off to the side, and
Object > Path > Outline strokeit into a being a rectangle
- Draw a small square, rotate it 45 degrees (hold shift while rotating)
Object > Transform > Reset Bounding Box
- Make sure Smart Guides (View menu or
ctrl-u) are on, snap it to the top of the rectangle, to the left a little
- Holding shift, stretch the bottom right corner until it snaps precisely to the bottom of the rectangle
- Delete the rectangle, and snap the diamond to the edge and centre of the stroke line
- Save. The new arrowhead should appear in new documents right away (if not, try restarting)
- When applying it to strokes, make sure “Extend arrow tip beyond end of path” is selected.
If anyone else needs to work on this illustrator file, you’ll need to either:
- Share your arrowheads.ai file with them and probably tell them what to do with it
Object > Path > Outline Strokeon all items that use this.
Source : Link , Question Author : user56reinstatemonica8 , Answer Author : Community