assets/digest/fontdetect.js
// Returns whether or not a font exists.

Returns whether or not a font exists.
Returns whether or not a font exists .
function detect(font) {
        var detected = false;
        for (var index in baseFonts) {
            s.style.fontFamily = font + ',' + baseFonts[index]; 
            h.appendChild(s);
            var matched = (s.offsetWidth != defaultWidth[baseFonts[index]] || s.offsetHeight != defaultHeight[baseFonts[index]]);
            h.removeChild(s);
            detected = detected || matched;
        }
        return detected;
    }
function detect ( font ) { var detected = false ; for ( var index in baseFonts ) { s . style . fontFamily = font + ',' + baseFonts [ index ] ; h . appendChild ( s ) ; var matched = ( s . offsetWidth != defaultWidth [ baseFonts [ index ] ] || s . offsetHeight != defaultHeight [ baseFonts [ index ] ] ) ; h . removeChild ( s ) ; detected = detected || matched ; } return detected ; }
Returns whether or not a font exists.
Returns whether or not a font exists .
// name of the font along with the base font for fallback.
