diff --git a/README.md b/README.md index 4ac15cc2..a61fd7a2 100644 --- a/README.md +++ b/README.md @@ -67,12 +67,29 @@ this. Learn more about [events][evt]. +## Manage loading everywhere + +Usually, it's easiest to include a copy of webfontloader in every window where +fonts are needed, so that each window manages its own fonts. However, if you +need to have a single window manage fonts for multiple same-origin child windows +or iframes that are built up using JavaScript, webfontloader supports that as +well. Just use the optional `context` configuration option and give it a +reference to the target window for loading: + + ## A common ground WebFont Loader aims to provide a common interface for font loading. Today it -works with Google, Typekit, Fonts.com Web fonts and your own CSS. Learn more in -[transitions][trn]. +works with Google, Typekit, Ascender, Fontdeck, Fonts.com Web fonts and your own +CSS. Learn more in [transitions][trn]. ## More to see @@ -125,11 +142,11 @@ Then, run the tests. * That's it! - ## Authors * Ryan Carver / ryan@typekit.com * Jeremie Lenfant-engelmann / jeremiele@google.com +* Sean McBride / sean@typekit.com ## License diff --git a/lib/webfontloader/demo/public/ascender-iframe.html b/lib/webfontloader/demo/public/ascender-iframe.html new file mode 100644 index 00000000..3146ee1c --- /dev/null +++ b/lib/webfontloader/demo/public/ascender-iframe.html @@ -0,0 +1,46 @@ + + +
++ Hide Page | + Reload Cached +
++ Note: use "localhost" when testing web fonts. +
++ The goal of this page is to show how fonts load from Ascender in a child + iframe. +
+ + + diff --git a/lib/webfontloader/demo/public/blank.html b/lib/webfontloader/demo/public/blank.html new file mode 100644 index 00000000..0923a947 --- /dev/null +++ b/lib/webfontloader/demo/public/blank.html @@ -0,0 +1,9 @@ + + + + ++ Hide Page | + Reload Cached +
++ The goal of this page is to show how fonts load from a custom module in a + child iframe. +
+ + + diff --git a/lib/webfontloader/demo/public/custom.html b/lib/webfontloader/demo/public/custom.html index 5e21ff79..1cd28139 100644 --- a/lib/webfontloader/demo/public/custom.html +++ b/lib/webfontloader/demo/public/custom.html @@ -6,7 +6,7 @@ + + + + + + ++ Hide Page | + Reload Cached +
++ The goal of this page is demonstrate fonts loading from Google via + Javascript into a child iframe. +
+ +