Fix calculation of offsets in font rendering so that we don't scribble all over memory!