# font-cawesome **Repository Path**: mirrors_WebReflection/font-cawesome ## Basic Information - **Project Name**: font-cawesome - **Description**: Canvas Rendered Font Awesome for IE9 Mobile and WP 7.X - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-07-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README font-cawesome ============= Just A Canvas Remix for IE9 Mobile and Windows Phone 7 **example** ```javascript // if you want to load this only in IE9 Mobile if(/*@cc_on(/\bIEMobile\b/.test(navigator.userAgent)&&@_jscript_version<10)||@*/false){ document.addEventListener( 'DOMContentLoaded', function (e) { FontCawesome( // the local svg file 'fonts/font-awesome.svg' ); } ); } ```` Above snippet will automatically replace everything with a `fa` class with it's icon image equivalent. In order to do specific replacements or arbitrary actions, we can specify a callback too. ```javascript document.addEventListener( 'DOMContentLoaded', function (e) { FontCawesome( 'fonts/font-awesome.svg', function (glyphs) { // glyps is an object // with keys such "\uf098" // representing objects // with a size method document.body.appendChild( glyps['\uf098'].size(48) // optionally a color too // '#EEE', 'rgb(10,20,30)' ); } ); } ); ````