github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

paulirish / font-face-detect

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 5
    • 1
  • Source
  • Commits
  • Network (1)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Detect if @font-face support is present in the browser. — Read more

  cancel

http://paulirish.com/2009/font-face-feature-detection/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

forgot the conditional compilation. whoops 
paulirish (author)
Sat Dec 19 13:08:57 -0800 2009
commit  07acc239ca2b552f9d638ea1ec92648c1b16000f
tree    ee682a422aa61b9c884d2a74f7af4c49677f4a46
parent  0dc8acda95d3ed6148bc5d444deb28e46207a7c4
font-face-detect /
name age
history
message
file PI.otf Sat Dec 19 12:52:55 -0800 2009 new data uri font. callback structure strengthe... [paulirish]
file README Wed Sep 23 22:32:47 -0700 2009 test is async. :( [paulirish]
file isFontFaceSupported.js Sat Dec 19 13:06:56 -0800 2009 style and updated minified version [paulirish]
file isFontFaceSupported.min.js Sat Dec 19 13:08:57 -0800 2009 forgot the conditional compilation. whoops [paulirish]
file isFontFaceSupportedSniff.js Sat Dec 19 12:58:00 -0800 2009 sniff needs to match the () api [paulirish]
file snifftest.html Fri Dec 18 22:16:34 -0800 2009 added test page. currently failing safari... [paulirish]
file test.html Sat Dec 19 12:52:55 -0800 2009 new data uri font. callback structure strengthe... [paulirish]
README
This script is a feature detection for the CSS3 feature of @font-face. This enables you to use a hosted font file as a 
font-family in your CSS.

View the full details of this project at:
    http://paulirish.com/2009/font-face-feature-detection/

My requirements for this detection were:

    * No browser userAgent sniffing
    * No extra HTTP request required
    * Must be performant with a small footprint, natch
    * Results should match the latest research on compatibility

This script is meant to replace all fontAvailable scripts. It can be asynchronous, but it has much greater accuracy.


Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server