Name
  page:MeasureText -- get byte length of text
Synopsis

      bl, rw = page:MeasureText(text, width, wordwrap)

Function
  `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).

Inputs
  text
    the text whose length to compute
  width
    the width of the area to put the text
  wordwrap
    boolean that says whether wordwrapping should be used
Results
  bl
    byte length of text
  rw
    real width of text

Show TOC