Figma Support Forum

Use custom fonts by electron.js

I’m aware that there is figma desktop application written on electron and it is very interesting project. But it uses rust to load fonts and overly complicated for me, since it embedded figma web page in electron app.

If I use webview is there any way to load custom fonts using IPC and pure node.js api?

Have you looked into using Font Installer? I don’t know how it works but it runs in the background and somehow delivers fonts to all browsers. Maybe it would work with Webview too? Download Figma Desktop Apps, Mobile Apps, and Font Installers. Also there is an unofficial Figma client for iPad called Figurative, it somehow loads custom fonts too.

I’m using linux and font installer is only on mac and windows. But direction is correct, because of that I think passing fonts to webview is possible. Sadly, I could not find any practical solutions…

Have you seen Figma Linux project? GitHub - Figma-Linux/figma-linux: Figma is the first interface design tool based in the browser, making it easier for teams to create software. Join us in and It can load custom fonts.

Yes and I wrote about it in the topic. It doesn’t use webview. There are reasons why I don’t want to use that project and one of them is rust bindings.

Oh I didn’t realize you were talking about that project since you didn’t mention Linux. Got it!