Check font availability and log status for each installed font.

by Imri Paloja

HTML

<div id="editor" style="font-family: Arial, serif;">
    Test
</div>

JavaScript

document.fonts.ready.then(() => {
  document.fonts.forEach((f) => console.log(f.family))
})