bl, rw = page:MeasureText(text, width, wordwrap)
page:MeasureText()
calculates the byte length which can be included within the specified width.
The wordwrap
parameter configures how words should be wrapped: Suppose there are three words: "ABCDE",
"FGH", and "IJKL". Also, suppose the substring until "J" can be included within the width (12 bytes).
If wordwrap
is False
the function returns 12. If wordwrap
parameter is True
, it returns 10 (the end of
the previous word).