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…
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.