views:

48

answers:

1

Is there any way to get the name of all installed fonts on user machine using HTML, javascript?

One way is to use classid, but i would like to know any other way round to do this?

+3  A: 

http://www.lalit.org/lab/javascript-css-font-detect

volkan er
this will tell me whether the specified font exists on user system or not. But my requirement is to know the name of all fonts existing on user sys.
Rakesh Juyal
in what situation it may not be enough?
galambalazs
Rakesh - there is no way other than trial and error. You cannot query for a list of fonts. You can only try a set of them and see if they work or not. This answer is the best one.
Diodeus
@Diodeus: By using classid i can get all fonts name. May be you are trying to say apart from classid method this is the best one. [ but definitely not acceptable one ]
Rakesh Juyal
I've never seen a classid in HTML for fonts. Please explain.
Diodeus