I want to create something where i define a string variable with like two sentence in it. Then i want to loop through the character in the string and render each of them to the screen and when ever i get to a special limit of text that i want to render on a line, i increase the y position of the text drawing. The purpose of getting the character size in this is to be able to know where to draw each character without giving too much spacing between the render of the whole sentence.
For example:
var test = 'The quick brown fox jumps over the lazy dog'
I want to be able to render something like this
draw_text(test) =>
The quick brown fox jumps over
the lazy dog
Thanks