Is there a way to determine the type of a given font (TrueType, OpenType, Type 1, Bitmap) using javascript?
Asked
Active
Viewed 435 times
2
-
How would the font be inputted/where's it coming from? – Gordon Gustafson Apr 28 '10 at 19:51
-
The code will be running inside a Firefox Add-on. I get the fonts available in the computer using the nsIFontEnumerator class. – Fábio Apr 28 '10 at 23:25
-
I would assume if the info is anywhere, it would have to be in `nslFontEnumerator`... – Pekka Jan 15 '11 at 13:50
-
It's not. There is a nsIFontMetrics class without an .idl making impossible to call it from JavaScript code. – Fábio Feb 05 '11 at 18:37