(function(){var _typeface_js={faces:{},loadFace:function(typefaceData){var familyName=typefaceData.familyName.toLowerCase();if(!this.faces[familyName]){this.faces[familyName]={};} if(!this.faces[familyName][typefaceData.cssFontWeight]){this.faces[familyName][typefaceData.cssFontWeight]={};} var face=this.faces[familyName][typefaceData.cssFontWeight][typefaceData.cssFontStyle]=typefaceData;face.loaded=true;},log:function(message){if(this.quiet){return;} message="typeface.js: "+message;if(this.customLogFn){this.customLogFn(message);}else if(window.console&&window.console.log){window.console.log(message);}},pixelsFromPoints:function(face,style,points,dimension){var pixels=points*parseInt(style.fontSize)*72/(face.resolution*100);if(dimension=='horizontal'&&style.fontStretchPercent){pixels*=style.fontStretchPercent;} return pixels;},pointsFromPixels:function(face,style,pixels,dimension){var points=pixels*face.resolution/(parseInt(style.fontSize)*72/100);if(dimension=='horizontal'&&style.fontStretchPrecent){points*=style.fontStretchPercent;} return points;},cssFontWeightMap:{normal:'normal',bold:'bold',400:'normal',700:'bold'},cssFontStretchMap:{'ultra-condensed':0.55,'extra-condensed':0.77,'condensed':0.85,'semi-condensed':0.93,'normal':1,'semi-expanded':1.07,'expanded':1.15,'extra-expanded':1.23,'ultra-expanded':1.45,'default':1},fallbackCharacter:'.',configure:function(args){var configurableOptionNames=['customLogFn','customClassNameRegex','customTypefaceElementsList','quiet','verbose','disableSelection'];for(var i=0;iexcerptLength){textExcerpt+='...';} var fontDescription=style.fontFamily;if(style.fontWeight!='normal')fontDescription+=' '+style.fontWeight;if(style.fontStyle!='normal')fontDescription+=' '+style.fontStyle;this.log("couldn't find typeface font: "+fontDescription+' for text "'+textExcerpt+'"');return;} var words=text.split(/\b(?=\w)/);var containerSpan=document.createElement('span');containerSpan.className='typeface-js-vector-container';var wordsLength=words.length;for(var i=0;iextents.ha) canvas.style.marginRight=Math.round(this.pixelsFromPoints(face,style,extents.x-extents.ha,'horizontal'))+'px';var ctx=canvas.getContext('2d');var pointScale=this.pixelsFromPoints(face,style,1);ctx.scale(pointScale*style.fontStretchPercent,-1*pointScale);ctx.translate(0,-1*face.ascender);ctx.fillStyle=style.color;return{context:ctx,canvas:canvas};},_renderGlyph:function(ctx,face,char,style){var glyph=face.glyphs[char];if(!glyph){return this.renderGlyph(ctx,face,this.fallbackCharacter,style);} if(glyph.o){var outline;if(glyph.cached_outline){outline=glyph.cached_outline;}else{outline=glyph.o.split(' ');glyph.cached_outline=outline;} var outlineLength=outline.length;for(var i=0;iextents.ha){shape.style.marginRight=this.pixelsFromPoints(face,style,extents.x-extents.ha,'horizontal')+'px';} this.applyElementVerticalMetrics(face,style,shape);var resolutionScale=face.resolution*100/72;shape.coordsize=(resolutionScale/style.fontStretchPercent)+","+resolutionScale;shape.coordorigin='0,'+face.ascender;shape.style.flip='y';shape.fillColor=style.color;shape.stroked=false;shape.path='hh m 0,'+face.ascender+' l 0,'+face.descender+' ';return shape;},_renderGlyph:function(shape,face,char,offsetX,style,vmlSegments){var glyph=face.glyphs[char];if(!glyph){this.log("glyph not defined: "+char);this.renderGlyph(shape,face,this.fallbackCharacter,offsetX,style);return;} vmlSegments.push('m');if(glyph.o){var outline,outlineLength;if(glyph.cached_outline){outline=glyph.cached_outline;outlineLength=outline.length;}else{outline=glyph.o.split(' ');outlineLength=outline.length;for(var i=0;i<\/script>"); var script = document.getElementById("__ie_onload_typeface"); script.onreadystatechange = function() { if (this.readyState == "complete") {_typeface_js.initialize();} }; /*@end @*/ try{console.log('initializing typeface.js')}catch(e){};})();_typeface_js.configure({quiet:true});