Is there a way to get the custom font file used by a layer?
The font file itself? Definitely no. Why?
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?
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.)
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.