Results 1 to 3 of 3

Thread: List of fonts in a drop down

  1. #1
    Join Date
    Nov 2011

    List of fonts in a drop down

    Anyone know if there is a list of fonts available in a dropdown I could use?

    This page has what I want but it's in Flash. I need it in plain HTML/JavaScript.

    I obviously know how to code a simple drop down box in HTML font by font but it will take ages to put in all the fonts so I just wondered if someone has already done it.


  2. #2
    Join Date
    Oct 2006
    You can see if this is any help?

  3. #3
    Join Date
    Jun 2012
    FL, USA
    i don't know of any, but best thing i'd say to at least make it easier is create an array with all the fonts and then run a loop to spit out the options

    fontsarray = new Array('times', 'blah', 'blah');
    x = 0;
    while ( x <= fontsarray.length )
    document.write('<option>' + fontsarray[x] + '</option>');

    if you can find some simple list of fonts online you can copy it into notepad or whathaveyou and run a 'replace all' on the list symbol to replace it with ', and then fill in the rest of the ' chars. And there's your array.
    Last edited by captainscall; 07-24-2012 at 12:52 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles