How GN4 measures overset/underset?

Build 1501 on 14/Nov/2017  This topic last edited on: 21/Mar/2016, at 18:35

The measuring of text overset/underset in the current frame (text container) is available in Ted4 and Fred4, for the article elements, linked to pages, or containing local geometry. The measuring is displayed in the status bar, and it's accessible also through commands GetTextOverH, GetTextOverN, or through properties OverH and OverN of article's node object, or text object.

The measuring is also available as a color of the frame (text container) border: in the default configuration, the red color means "overset or underset", while blue color means "in measure". Please note that the such frames colors are a personal preference, so users can change them (see Frame border color and non-fitting values).

The leading used to to calculate an overset is the leading used on the beginning of the last paragraph in text, in other words:

after a paragraph style (if any)

after the tag >default< (if any)

before any other tag or content

The computing is based on ENTIRE TEXT LINES, ignoring vertical shifts up/down produced by >jmp..<, >d...< or >u..< tags (while shifts produced by >ld..<, >eld..<, >a..< and >ta..< are not ignored).

The calculation goes as: Can one or more entire text lines fit into the frame? If Yes, the text is considered as underset – the frame color is red (default), the counter shows negative number, corresponding to the number of entire text lines. Is one or more lines entirely outside of frame? If yes, the text is considered as overset – the frame color is red (default), the counter shows positive number, corresponding again to the number of entire text lines.

hmtoggle_plus1Measuring overset/underset in default text (no tags)
hmtoggle_plus1Measuring overset/underset in formatted text
Click to toggle expandMeasuring caveats