typekit/webfontloader — pull request #71 by seanami (2012-12-05 08:11:29+00:00)
Title: Support for loading fonts in child iframes and windows

This branch is based on @ryanwolf's branch linked from #69 which adds a feature to load fonts within a same-origin child iframe or window using a new `context` configuration option. By default, fonts load in the main window where webfontloader.js was loaded, but by adding the `context` option and passing a different window reference, you can load fonts in a child iframe instead.

This branch contains Ryan's commits as well as some of my own to rename, clean things up, and change the syntax of using the option slightly (from a second argument to another configuration option).

The usage looks like this:

WebFontConfig = {
google: {
families: [ 'Tangerine', 'Cantarell' ]
},
context: childIframeWindow
};