I’m running into something confusing with the Figma plugin API and wanted to check whether I’m missing something.
I’m trying to outline text through a plugin. I found `outlineStroke()` in the docs, and the description says it does something similar to using “Outline Stroke” in the editor, so I assumed this would work for text nodes too.
My goal is to take text like `09:28` and turn it into outlined geometry so I can analyze the real character positions and spacing.
The problem is:
- `flatten()` doesn’t help, because it turns the whole text into one merged vector
- `outlineStroke()` doesn’t seem to give me the kind of outlined text result I expected
So now I’m not sure if:
- this is not actually supported for `TextNode`
- the docs are a bit misleading here
- or this is just a bug / limitation in the plugin API
Has anyone here successfully done this?
More specifically:
- Can a plugin really outline text the same way as the editor command?
- Is `outlineStroke()` supposed to work on normal text, or only on nodes that literally have strokes?
- If not, is there any good workaround for getting glyph-level outlined text from a plugin?
Would really appreciate any insight from people who’ve tried this before.
