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.