public
Description: Font detection using Javascript and Flash
Homepage:
Clone URL: git://github.com/gabriel/font-detect-js.git
gabriel (author)
Wed Jan 28 11:46:04 -0800 2009
commit  41d35736c2da9d04a0d6cc00eab51644684679aa
tree    0705d002b0c3c938baab1773db7f1741abefebf0
parent  64bc075e3f720704f88b24be7ba8bb26a8d2d67d
README.md

font-detect-js

Uses javascript (jQuery or Prototype) + flash to detect your system fonts.

View a demo at: http://font-detect.s3.amazonaws.com/index.html

font-detect.png

<!-- element for SWF to load into -->
<div id="font-detect-swf"></div>

<script src="javascripts/jquery-1.2.6.pack.js"></script>
<script src="javascripts/swfobject.js"></script>
<script src="javascripts/font-detect.js"></script>  
<script>
  $(document).ready(function() {

    var fontDetect = newFontDetect("font-detect-swf", "flash/FontList.swf", function(fd) {        
      var fonts = fd.fonts();

      // Do something with fonts, which look like: [ { fontName:'Arial', fontStyle:'regular' fontType:'device' }, .... ]
      // for(var i = 0, length = fonts.length; i < length; i++) {
      //   var name = fonts[i].fontName;
      // }
    };

  });
</script>

There is also a Prototype version at font-detect.prototype.js