Added check newCharPerLine not being zero

Added check newCharPerLine not being zero to fix an endless loop condition on text with only two unicode characters (they displayed as boxes in Chrome due the current font not having a map for them)

I ran into this and ended up with an endless loop.  This fixes that.