Implementing rendering of text using WebGL and canvas