Emscripten: Fix calculation of offsets in font rendering so that we don't scribble a...

...ll over memory! Serious bug -- will probably crash anyone who tries to render multiline text in Emscripten.