public
Description: Font detection using Javascript and Flash
Homepage:
Clone URL: git://github.com/gabriel/font-detect-js.git
name age message
file README.md Wed Jan 28 11:46:42 -0800 2009 Fixing link [gabriel]
file amp.html Thu Aug 14 13:22:46 -0700 2008 adding ampersand view [gabriel]
file edit.html Tue Jul 29 10:33:45 -0700 2008 using new constructor signature [gabriel]
directory flash/ Fri Jul 25 20:12:22 -0700 2008 updating to use javascript -> flash direct and ... [gabriel]
file index.html Tue Jul 29 10:33:45 -0700 2008 using new constructor signature [gabriel]
file index.prototype.html Fri Aug 01 14:08:40 -0700 2008 adding prototype version [gabriel]
directory javascripts/ Fri Aug 01 14:08:59 -0700 2008 storing length [gabriel]
directory stylesheets/ Thu Jun 26 14:23:49 -0700 2008 importing [gabriel]
README.md

font-detect-js

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

View a demo

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