Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Client-side font list

Client-side font list

Client-side font list

I remember someone recently asked how to find out if a user had a certain font installed on their computer.

Unfortunately, I can't find the post anymore, but here's more information on how to do this on a webpage (when viewed using IE 6).

This information comes from Microsoft's MSDN library at:


function getFonts()
   var nFontLen = dlgHelper.fonts.count;
   var rgFonts = new Array();

   for ( var i = 1; i < nFontLen + 1; i++ )
      rgFonts[i] = dlgHelper.fonts(i);

   for ( var j = 0; j < nFontLen; j++ )
      document.write( rgFonts[j] + "<BR>" );
<BODY onload="getFonts()">
<OBJECT id=dlgHelper CLASSID="clsid:3050f819-98b5-11cf-bb82-
00aa00bdce0b" width="0px" height="0px">


RE: Client-side font list

Neat! Cannot think of an application for it right now, but I'm sure that is handy information :)


Isn't that cheating? LOL

Do they have a reference to all the possible clsid: on msdn? :/

I'm willing to trade custom scripts for... [see profile]

RE: Client-side font list


It was me that started the original post, I have a use for this - the only problem is it don't work for me - I get an error

dlgHelper.fonts.count is null or not an object.

I am using ie6 on xp pro - any ideas why it wont work?



RE: Client-side font list


You need to make sure the clsid has no line break in it... It should be one long continuous string:


Hope this helps!

Dan (although everyone seems to call me Billy despite the fact I always sign my posts off as Dan! *shrug*)

RE: Client-side font list

Billy Ray,

Thanks, fantastic - exactly what I was looking for - I've given you a star - but you deserve more!!


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close