| Search Locate Previous Next | Contents |
Sometimes it is helpful to know how many lines your text will take up before you ask NewLeaf to wrap it into the current frame. You could use this to manage your own widow/orphan control, or even to change the page layout dynamically, for example to set a header paragraph in a boxed frame that exactly fitted it.
The syntax of this call is:
linesfw CopyFit para
... where fw is the width of the frame you want to check. Remember to subtract any gutters and indents from this. To calculate the exact frame depth, simply multiply by the font pitch, e.g. 14.4 for default 12-point Times.