Is there a way to set a custom stroke end angle without modifying nodes or handles?

Hi,

I’m developing a Korean typeface using stroke paths, and I need to set a custom angle for stroke endings — not just the built-in presets (vertical, horizontal, etc.).

By comparing the .glyphs file before and after applying the built-in vertical end cap button, I found that it simply sets lineCapEnd = 4 in the path’s attributes. The other built-in buttons use values 1, 2, and 3. So it seems lineCapEnd is a style preset index, not an angle value.

What I need is to set an arbitrary angle (e.g. 45°, -30°) for the stroke ending — the same way the built-in buttons work, but for any angle.

My constraints:

  • The stroke path must remain as a stroke object (not expanded to outlines)

  • Node and handle positions must not be modified

  • Only the visual end angle should change

Is there an internal API or attribute that accepts an arbitrary angle value for stroke endings? For example, something like lineCapEnd = 45.0? Or is there another approach I’m missing?

Thank you.

There are some solutions. You could use one of the plugins available in Plugin Manager. The most sophisticated is the paid plugin LTTR/INK.

Also, you can use _cap components for the stroke endings.

Plus there is something in the works. Will DM you in case you want to beta test.

1 Like

I have tried LTTR/INK, but it was difficult to draw the way I intended. I have been researching the _cap component approach, but haven’t made much progress. I would love to participate in the beta test. Please send me a DM.
Thank you.

can you send me some images/sketches of what you are trying to do (maybe in a private message)?

I’ve sent you a message.