How do I get a list of fonts available on a user's computer?
Apr 4th, 2008 19:54
ha mo, Mark Szlazak, Jean-Bernard Valentaten, Deep Fried Mars, Colin Fraser, Joe Boland,
> Since this would be a security hole, there is no way to find out what
> fonts are installed on a users computer
> If you want to use one very specific font and are not sure that
> everybody has t installed, simply get a copy of the font on the
> server of your webpage (or whereever you can access it via url) and
> reference it through a CSS (please see CSS-manual for additional
> Otherwise I do propose to use font-families like arial, sans-serif
> and the likes.
I also want to find out what fonts are avalaible from a client. It is
to enable users to print reports off in any font they have available
from their browser. If anyone has any idea, please post.
Well, in that case I'd say you'll have to write an applet, since you
a) find out what fonts are on a users computer via JS
b) tell the JS print() method which font to use
Java on the other side can do that and is just perfect for such tasks.
See "Identifying Installed Fonts" at: