function isFontInstalled(fontName) { var testNode = document.querySelector('#test-node span'); testNode.style.fontFamily = "'" + fontName + "', 'Empty'"; return !!testNode.offsetWidth; } window.addEventListener('DOMContentLoaded', function () { setTimeout(function () { var ul = document.querySelector('ul'); ['メイリオ', 'MS PGothic', 'MS Pゴシック', 'Hiragino Kaku Gothic Pro', 'Hoge'].forEach(function (fo