Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
TextWrap occasionally dropping off words — Gideros Forum

TextWrap occasionally dropping off words

AniketAniket Member
edited January 2016 in General questions
@ar2rsawseen I was using your extremely useful TextWrap. I noticed that very rarely, a word at the end of the sentence in the TextWrap could be left out entirely.

Looking into the code I saw that the iters were one too few and that was because the line mentioned below was taking the floor of a number like 19.9322, and there not being space for the last word, which was not shown at all.
https://github.com/ar2rsawseen/TextWrap/blob/master/TextWrap.lua#L52

Why isn't that ceil instead of floor?

Comments

Sign In or Register to comment.