Skip to main content
David_Altreiter_privat
Aug 24, 2022 7:55 PM UTC
Solved

Keeping Text in SVG when using REST API

I am currently requesting an SVG of my Frame using the REST APIs GET/v1/images/:key
route.
I noticed that the text used there gets outlined, resulting in paths.
I would like to manipulate that text content and would need them to stay <text> elements.

Is there a way to use the same option as in the UI to disable outlined text?

image

This topic has been closed for replies.
Love_Olsson
Love_OlssonSolution
Sep 18, 2023 8:40 PM UTC

The query parameter is “svg_outline_text=false”, for anyone looking.
It’s still undocumented, but found it by trial and error.

8 replies

Mohamed_Mortada
Sep 9, 2022 9:15 PM UTC

This needs to happen, how come it’s not an API feature yet?

JohnPhamous_V
Nov 8, 2022 7:39 PM UTC

I would also like Outline Text as an argument in the API. Our use case is to allow users to programmatically create variations of an image designed in Figma.

JohnPhamous_V
Nov 30, 2022 7:12 PM UTC

Bumping this.

Tobias_Lins
Dec 12, 2022 9:40 PM UTC

That would be so neat to have!

Mar 17, 2023 8:00 AM UTC

need this too!

Apr 5, 2023 7:47 AM UTC

Definitely need this feature.

Jul 29, 2023 7:18 PM UTC

Feature available yet?

Love_Olsson
Love_OlssonSolution
Sep 18, 2023 8:40 PM UTC

The query parameter is “svg_outline_text=false”, for anyone looking.
It’s still undocumented, but found it by trial and error.