I have a problem with using FontAwesome icons in my HTML 5 canvas, I tried this:
ct.fillStyle = "black";
ct.font = "20px Font Awesome";
ct.textAlign = "center";
var h = 'F1E2';
ct.fillText(String.fromCharCode(parseInt(h, 16)), x, y);
I tried importing the FontAwesome CSS file but it didn't work! Can anybody help me with this?
Thanks!