|
|
@ -573,7 +573,8 @@ var FontLoader = { |
|
|
|
src += ' window.onload = function fontLoaderOnload() {\n'; |
|
|
|
src += ' window.onload = function fontLoaderOnload() {\n'; |
|
|
|
src += ' parent.postMessage(JSON.stringify(fontNames), "*");\n'; |
|
|
|
src += ' parent.postMessage(JSON.stringify(fontNames), "*");\n'; |
|
|
|
src += ' }'; |
|
|
|
src += ' }'; |
|
|
|
src += '</script></head><body>'; |
|
|
|
// Hack so the end script tag isn't counted if this is inline JS.
|
|
|
|
|
|
|
|
src += '</scr' + 'ipt></head><body>'; |
|
|
|
for (var i = 0, ii = names.length; i < ii; ++i) { |
|
|
|
for (var i = 0, ii = names.length; i < ii; ++i) { |
|
|
|
src += '<p style="font-family:\'' + names[i] + '\'">Hi</p>'; |
|
|
|
src += '<p style="font-family:\'' + names[i] + '\'">Hi</p>'; |
|
|
|
} |
|
|
|
} |
|
|
|