Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get all system fonts electron js

I am building a desktop application using Electron. In my app I have a window that sets some user preferences such ass background color for my app.I want to be able to show a select box which will contain all system fonts.Is that possible?

UPDATE

My app is going to be cross platform so I would like a cross platform solution if possible

like image 757
Manos Kounelakis Avatar asked Apr 29 '17 07:04

Manos Kounelakis


Video Answer


1 Answers

font-manager is a "module for Node.js providing access to the system font catalog", which seems to fit the bill.

Supported platforms:

  • Mac OS X 10.5 and later supported via CoreText
  • Windows 7 and later supported via DirectWrite
  • Linux supported via fontconfig
like image 114
Hugues M. Avatar answered Oct 12 '22 12:10

Hugues M.