Lines Matching refs:index
24 var detector = {}, baseFonts, testString, testSize, h, s, defaultWidth = {}, defaultHeight = {}, index;
43 for (index in baseFonts) {
45 s.style.fontFamily = baseFonts[index];
47 defaultWidth[baseFonts[index]] = s.offsetWidth; //width for the default font
48 defaultHeight[baseFonts[index]] = s.offsetHeight; //height for the defualt font
53 var detected = false, index, matched;
54 for (index in baseFonts) {
55 s.style.fontFamily = font + ',' + baseFonts[index]; // name of the font along with the base font for fallback.
57 matched = (s.offsetWidth !== defaultWidth[baseFonts[index]] || s.offsetHeight !== defaultHeight[baseFonts[index]]);