Skip to main content
Question

Use custom fonts by electron.js


Gio

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?

5 replies

Gleb
  • Power Member
  • 4706 replies
  • April 4, 2021

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.


Gio
  • Author
  • 2 replies
  • April 4, 2021

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…


Gleb
  • Power Member
  • 4706 replies
  • April 4, 2021

Gio
  • Author
  • 2 replies
  • April 4, 2021

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.


Gleb
  • Power Member
  • 4706 replies
  • April 4, 2021

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings