私は、選択したソリューションを IE と FF、さらには iOS の Safari でも機能するように調整しました。選択したソリューションは Chrome でのみ機能しました。(残念ながら、そのソリューションにコメントを追加することはまだできません。そのため、別のソリューションに入れています。)
function getFonts (obj) {
var o = obj || {},
sheets = document.styleSheets,
rules = null,
i = sheets.length, j;
while( 0 <= --i ){
rules = sheets[i].cssRules || sheets[i].rules || []; // I swapped those two, IE would go wrong
j = rules.length;
while( 0 <= --j ){
if( rules[j].toString() == "[object CSSFontFaceRule]" ){ // This works in IE and FF too
o[ rules[j].style.fontFamily ] = rules[j].style.src;
};
}
}
return o;
}