Figma Support Forum

Get the custom font file

Is there a way to get the custom font file used by a layer?

The font file itself? Definitely no. Why?

Hi Gleb.
Because I’m doing a tool which exports from Figma design. Not having the font file becomes an issue.

It the plugin API doesn’t have it, maybe the REST API has it?
Otherwise, do you have suggestion?

Thanks!

What kind of export is it? Why do you need the font in it? No, REST API can’t do that either.

Without the font file, obviously the export is not going to have all the information.

So there’s no way to get the font by code in any way? (either plugin API, REST API, etc.)

Thanks

Again, what kind of export are you doing that needs the font files? None of the common export formats (png, svg, pdf) need the font files.