gabriel / font-detect-js
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
commit c75bd160ffe002861570dab25b4c9dede3b54b56
tree b9e32b4e8378ae0a619f5a2b186da053f1e0b8e3
parent 41d35736c2da9d04a0d6cc00eab51644684679aa
tree b9e32b4e8378ae0a619f5a2b186da053f1e0b8e3
parent 41d35736c2da9d04a0d6cc00eab51644684679aa
| name | age | message | |
|---|---|---|---|
| |
README.md | Wed Jan 28 11:46:42 -0800 2009 | |
| |
amp.html | Thu Aug 14 13:22:46 -0700 2008 | |
| |
edit.html | Tue Jul 29 10:33:45 -0700 2008 | |
| |
flash/ | Fri Jul 25 20:12:22 -0700 2008 | |
| |
index.html | Tue Jul 29 10:33:45 -0700 2008 | |
| |
index.prototype.html | Fri Aug 01 14:08:40 -0700 2008 | |
| |
javascripts/ | Fri Aug 01 14:08:59 -0700 2008 | |
| |
stylesheets/ | Thu Jun 26 14:23:49 -0700 2008 |
README.md
font-detect-js
Uses javascript (jQuery or Prototype) + flash to detect your system fonts.

<!-- 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
