Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

131 lines (126 sloc) 4.486 kb
<!doctype html>
<script type="text/javascript" src="/webfont.js"></script>
<script type="text/javascript">
function progress(message) {
var output = document.getElementById('events');
if (output) {
var e = document.createElement('li');
e.innerHTML = message;
if (window.console && window.console.log) {
google: {
families: ['Droid Serif:r,i,b,bi']
loading: function() {
active: function() {
inactive: function() {
fontloading: function(fontFamily, fontDescription) {
progress('fontloading: ' + fontFamily + ' (' + fontDescription + ')');
fontactive: function(fontFamily, fontDescription) {
progress('fontactive: ' + fontFamily + ' (' + fontDescription + ')');
fontinactive: function(fontFamily, fontDescription) {
progress('fontinactive: ' + fontFamily + ' (' + fontDescription + ')');
<style type="text/css">
.droid p {
font-family: 'Droid Serif';
font-size: 2em;
margin-bottom: 0;
visibility: hidden;
.wf-droidserif-n4-active #droidregular {
visibility: visible;
.wf-droidserif-i4-active #droiditalic {
visibility: visible;
.wf-droidserif-n7-active #droidbold {
visibility: visible;
.wf-droidserif-i7-active #droidbolditalic {
visibility: visible;
/* All Class hooks */
#classes { color: #ddd; } #classes .Loading, #classes .Active, #classes .Inactive, #classes #DroidSerifRegularLoading, #classes #DroidSerifRegularActive, #classes #DroidSerifRegularInactive, #classes #DroidSerifItalicLoading, #classes #DroidSerifItalicActive, #classes #DroidSerifItalicInactive, #classes #DroidSerifBoldLoading, #classes #DroidSerifBoldActive, #classes #DroidSerifBoldInactive, #classes #DroidSerifBoldItalicLoading, #classes #DroidSerifBoldItalicActive, #classes #DroidSerifBoldItalicInactive {
color: #000;
<div class="droid">
<p id="droidregular">
Droid Serif Regular
<p id="droiditalic">
<em>Droid Serif Italic</em>
<p id="droidbold">
<strong>Droid Serif Bold</strong>
<p id="droidbolditalic">
<strong><em>Droid Serif Bold Italic</em></strong>
<a href="#" onclick="document.getElementsByTagName('body')[0].style.color = '#fff';return false;">Hide Page</a> |
<a href="/events-variations.html">Reload Cached</a>
The goal of this page is to show all of the font loading event callbacks when using
multiple weights and styles of one typeface.
<h2>CSS Hook Status</h2>
<ul id="classes">
<li class="Loading">Loading</li>
<li class="Active">Active</li>
<li class="Inactive">Inactive</li>
<li id="DroidSerifRegularLoading">Droid Serif Regular Loading</li>
<li id="DroidSerifRegularActive">Droid Serif Regular Active</li>
<li id="DroidSerifRegularInactive">Droid Serif Regular Inactive</li>
<li id="DroidSerifItalicLoading">Droid Serif Italic Loading</li>
<li id="DroidSerifItalicActive">Droid Serif Italic Active</li>
<li id="DroidSerifItalicInactive">Droid Serif Italic Inactive</li>
<li id="DroidSerifBoldLoading">Droid Serif Bold Loading</li>
<li id="DroidSerifBoldActive">Droid Serif Bold Active</li>
<li id="DroidSerifBoldInactive">Droid Serif Bold Inactive</li>
<li id="DroidSerifBoldItalicLoading">Droid Serif Bold Italic Loading</li>
<li id="DroidSerifBoldItalicActive">Droid Serif Bold Italic Active</li>
<li id="DroidSerifBoldItalicInactive">Droid Serif Bold Italic Inactive</li>
<h2>JavaScript Event Progress</h2>
<ol id="events"></ol>
Jump to Line
Something went wrong with that request. Please try again.