A JavaScript library to generate text favicon from HTML5 canvas
- URL : http://blog.ryanwu.me
Add the script to your page
<script src="/js/FontFav.min.js"></script>
{
fillColor: '#ea4317',
roundCorner: true,
fontStyle: 'normal',
fontVariant: 'normal',
fontWeight: '100',
fontFamily: 'Fantasy',
fontColor: '#FFFFFF',
textAlign: 'center',
textBaseline: 'middle',
text: 'FV'
}
Create a new FontFavi
object with options, then use update()
to install the favicon.
var favicon = new FontFavi(options);
favicon.update();
var favicon = new FontFavi({
fontFamily : 'Lato',
text : 'RW'
});
favicon.update();