3

Can JavaScript (or something else) tell me what fonts my browser supports out of the box, without loading external font files?

I would like to programmatically generate a list of the installed fonts on my Browser.

(In the Chrome dev tools, under the "Elements" pane, if one does Ctrl + Click inside a custom CSS property with empty value, it will tell you the list of acceptable values for that property. E.g., for the CSS property display it will tell you inline, inline-block, inline-table, etc. Unfortunately, the list for font-family doesn't contain the available fonts.)

Randomblue
  • 112,777
  • 145
  • 353
  • 547

1 Answers1

0

Using JavaScript, given a font name one can test if the corresponding font is installed. That's not good enough.

Using Flash, one can retrieve the full list of fonts. There is a nice demo here.

Randomblue
  • 112,777
  • 145
  • 353
  • 547