Setting the height of each print line (sys.LineHeight)¶

!temp sys.LineHeight,,u4

Height of each print line

If this variable is set to a non-zero value, it specifies the required height of each print line in device units (usually pixels).

If set to zero (which is the default), Sculptor sets the line height for each print line to the maximum value of sys.CharHeight used in that line.

Changing sys.LineHeight causes sys.PageLength to change to suit the new line height. This over-rides the page length value taken from the printer parameter file. The value of sys.LinesLeft and the footnote logic are also updated.

While sys.LineHeight remains non-zero, Sculptor does not reset sys.PageLength when a new font is selected. This is useful when changing fonts temporarily. To force Sculptor to set sys.PageLength, set sys.LineHeight to zero before selecting a new font.

If sys.LineHeight is set and text which is taller than the line is subsequently printed, the text will overlap the line above. If different font sizes are used in the line, it is the programmer’s responsibility to ensure that a suitable value is set.

If sys.LineHeight is changed more than once in the same line, the last value set takes effect.

DEFAULT: zero.


RELATED TOPICS

sys.CharHeight

Using proportional fonts