Lines Matching full:descriptors
70 var descriptors = parseFontString(fontstr);
71 var typeface = getFromFontCache(descriptors);
72 descriptors['typeface'] = typeface;
73 return descriptors;
86 // descriptors is like https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace
88 function addToFontCache(typeface, descriptors) { argument
89 var key = (descriptors['style'] || 'normal') + '|' +
90 (descriptors['variant'] || 'normal') + '|' +
91 (descriptors['weight'] || 'normal');
92 var fam = descriptors['family'];
102 function getFromFontCache(descriptors) { argument
103 var key = (descriptors['style'] || 'normal') + '|' +
104 (descriptors['variant'] || 'normal') + '|' +
105 (descriptors['weight'] || 'normal');
106 var fam = descriptors['family'];