by commandlinefan · 4y ago · 0 comments
They can? I looked into this once - I was putting together a demo site for a friend who does graphic design (like physical signs) and he had a lot of unusual fonts installed on his computer that he would have liked to use from the website. He wanted a dynamic drop-down of all installed fonts so he could select the one to use in the demo, but as far as I could tell, Javascript doesn't allow that specifically because it could lead to browser fingerprinting/security problems.
document.fonts.check()
and it will tell you if it's on that system. For instance, try: console.log(document.fonts.check("12pt Apple Color Emoji"));