Fix use of 'end' parameter in fonsDrawText and fonsTextBounds

Also compute end earlier in fonsDrawText (if needed) so that fonsTextBounds doesn't need to recompute it.