This example fills text with a specified image.
Important! The specified image must be fully loaded before calling this function or the drawing will fail. Use image.onload to be sure the image is fully loaded.
function drawImageInsideText(canvas,x,y,img,text,font){
var c=canvas.cloneNode();...