I've previously blogged about the unexpected complications of minor features , which covers how adding a seemingly small software change can turn out to be much...
I wrote my own word wrapping for my game and I agree it was a huge challenge to get something that works even most the time.